plugins.adufour.ezplug
Class EzVarEnum<E extends java.lang.Enum<E>>
java.lang.Object
plugins.adufour.ezplug.EzComponent
plugins.adufour.ezplug.EzVar<E>
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
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 |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EzVarEnum
public EzVarEnum(java.lang.String varName,
E[] values)
- Constructs a new input VarEnum variable
- Parameters:
varName
- the variable namevalues
- 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 namevalues
- the values to choose from. The full list of enumeration values can be obtained with the E.values()
method, where E is the enumeration typedefaultValue
- 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 namevalues
- the values to choose from. The full list of enumeration values can be obtained with the E.values()
method, where E is the enumeration typedefaultValueIndex
- the zero-based index of the enumeration value to select by default