|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.sound.sampled.Control
javax.sound.sampled.BooleanControl
public abstract class BooleanControl
A BooleanControl is a Control which has two states.
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. |
Methods inherited from class javax.sound.sampled.Control |
---|
getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected BooleanControl(BooleanControl.Type type, boolean init)
type
- the typeinit
- the initial valueprotected BooleanControl(BooleanControl.Type type, boolean init, String trueLabel, String falseLabel)
type
- the typeinit
- the initial valuetrueLabel
- the label for the true statefalseLabel
- the label for the false stateMethod Detail |
---|
public String getStateLabel(boolean state)
state
- the state
public boolean getValue()
public void setValue(boolean value)
value
- the new valuepublic String toString()
toString
in class Control
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |