public abstract class EnumControl extends Control
| Modifier and Type | Class and Description |
|---|---|
static class |
EnumControl.Type
This Type describes an EnumControl.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EnumControl(EnumControl.Type type,
java.lang.Object[] values,
java.lang.Object val)
Create a new enumerated control given its Type, the range of valid
values, and its initial value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getValue()
Return the current value of this control.
|
java.lang.Object[] |
getValues()
Return the valid values for this control.
|
void |
setValue(java.lang.Object value)
Set the value of this control.
|
java.lang.String |
toString()
Return a string describing this control.
|
protected EnumControl(EnumControl.Type type, java.lang.Object[] values, java.lang.Object val)
type - the typevalues - the valid valuesval - the initial valuepublic java.lang.Object getValue()
public java.lang.Object[] getValues()
public void setValue(java.lang.Object value)
value - the new valuejava.lang.IllegalArgumentException - if the new value is invalid