CompoundControlpublic abstract class CompoundControl extends Control A CompoundControl , such as a graphic equalizer, provides control
over two or more related properties, each of which is itself represented as
a Control . |
Fields Summary |
---|
private Control[] | controlsThe set of member controls. |
Constructors Summary |
---|
protected CompoundControl(Type type, Control[] memberControls)Constructs a new compound control object with the given parameters.
super(type);
this.controls = memberControls;
|
Methods Summary |
---|
public javax.sound.sampled.Control[] | getMemberControls()Returns the set of member controls that comprise the compound control.
Control[] localArray = new Control[controls.length];
for (int i = 0; i < controls.length; i++) {
localArray[i] = controls[i];
}
return localArray;
| public java.lang.String | toString()Provides a string representation of the control
StringBuffer buf = new StringBuffer();
for (int i = 0; i < controls.length; i++) {
if (i != 0) {
buf.append(", ");
if ((i + 1) == controls.length) {
buf.append("and ");
}
}
buf.append(controls[i].getType());
}
return new String(getType() + " Control containing " + buf + " Controls.");
|
|