javax.sound.sampled
public abstract class EnumControl extends Control
Since: 1.3
Nested Class Summary | |
---|---|
static class | EnumControl.Type
This Type describes an EnumControl. |
Constructor Summary | |
---|---|
protected | EnumControl(EnumControl.Type type, Object[] values, Object val)
Create a new enumerated control given its Type, the range of valid
values, and its initial value. |
Method Summary | |
---|---|
Object | getValue()
Return the current value of this control. |
Object[] | getValues()
Return the valid values for this control. |
void | setValue(Object value)
Set the value of this control. |
String | toString()
Return a string describing this control. |
Parameters: type the type values the valid values val the initial value
Parameters: value the new value
Throws: IllegalArgumentException if the new value is invalid