javax.sound.sampled
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,
Object[] values,
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 |
---|---|
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.
|
protected EnumControl(EnumControl.Type type, Object[] values, Object val)
type
- the typevalues
- the valid valuesval
- the initial valuepublic void setValue(Object value)
value
- the new valueIllegalArgumentException
- if the new value is invalidpublic String toString()
toString
in class Control
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)