plugins.adufour.ezplug
Class EzVarEnum<E extends java.lang.Enum<E>>

java.lang.Object
  extended by plugins.adufour.ezplug.EzComponent
      extended by plugins.adufour.ezplug.EzVar<E>
          extended by plugins.adufour.ezplug.EzVarEnum<E>
Type Parameters:
E - The enumeration type
All Implemented Interfaces:
VarListener<E>

public class EzVarEnum<E extends java.lang.Enum<E>>
extends EzVar<E>

Class defining a enumeration type variable.
The graphical component is a combo box containing some (or all) values of the enumeration

Author:
Alexandre Dufour

Field Summary
 
Fields inherited from class plugins.adufour.ezplug.EzComponent
name, visible
 
Constructor Summary
EzVarEnum(java.lang.String varName, E[] values)
          Constructs a new input VarEnum variable
EzVarEnum(java.lang.String varName, E[] values, E defaultValue)
          Constructs a new input VarEnum variable
EzVarEnum(java.lang.String varName, E[] values, int defaultValueIndex)
          Constructs a new input VarEnum variable
 
Method Summary
 
Methods inherited from class plugins.adufour.ezplug.EzVar
addTo, addVarChangeListener, addVisibilityTriggerTo, dispose, fireVariableChanged, getDefaultValues, getValue, getValue, getVarEditor, getVariable, isEnabled, referenceChanged, removeAllVarChangeListeners, removeVarChangeListener, setDefaultValues, setEnabled, setOptional, setToolTipText, setValue, setVisible, toString, updateVisibilityChain, valueChanged
 
Methods inherited from class plugins.adufour.ezplug.EzComponent
getGroup, getVisible, isVisible, setGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EzVarEnum

public EzVarEnum(java.lang.String varName,
                 E[] values)
Constructs a new input VarEnum variable

Parameters:
varName - the variable name
values - the values to choose from. The full list of enumeration values can be obtained with the E.values() method, where E is the enumeration type

EzVarEnum

public EzVarEnum(java.lang.String varName,
                 E[] values,
                 E defaultValue)
Constructs a new input VarEnum variable

Parameters:
varName - the variable name
values - the values to choose from. The full list of enumeration values can be obtained with the E.values() method, where E is the enumeration type
defaultValue - the enumeration value to select by default

EzVarEnum

public EzVarEnum(java.lang.String varName,
                 E[] values,
                 int defaultValueIndex)
Constructs a new input VarEnum variable

Parameters:
varName - the variable name
values - the values to choose from. The full list of enumeration values can be obtained with the E.values() method, where E is the enumeration type
defaultValueIndex - the zero-based index of the enumeration value to select by default