javax.sound.sampled
public abstract class BooleanControl extends Control
Since: 1.3
Nested Class Summary | |
---|---|
static class | BooleanControl.Type
A Type specialized to represent a boolean control. |
Constructor Summary | |
---|---|
protected | BooleanControl(BooleanControl.Type type, boolean init)
Create a new boolean control, with the indicated Type and initial
value. |
protected | BooleanControl(BooleanControl.Type type, boolean init, String trueLabel, String falseLabel)
Create a new boolean control, with the indicated Type, initial
value, and labels. |
Method Summary | |
---|---|
String | getStateLabel(boolean state)
Return the label corresponding to the indicated state. |
boolean | getValue()
Return the current value of thhe control. |
void | setValue(boolean value)
Set the value of the control as indicated. |
String | toString()
Return a string describing this control. |
Parameters: type the type init the initial value
Parameters: type the type init the initial value trueLabel the label for the true state falseLabel the label for the false state
Parameters: state the state
Returns: the true label or the false label, as appropriate
Parameters: value the new value