FileDocCategorySizeDatePackage
CompoundControl.javaAPI DocJava SE 5 API2641Fri Aug 26 14:57:50 BST 2005javax.sound.sampled

CompoundControl

public 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.
author
Kara Kytle
version
1.10, 03/12/19
since
1.3

Fields Summary
private Control[]
controls
The set of member controls.
Constructors Summary
protected CompoundControl(Type type, Control[] memberControls)
Constructs a new compound control object with the given parameters.

param
type the type of control represented this compound control object
param
memberControls the set of member controls

	
	super(type);
	this.controls = memberControls;
    
Methods Summary
public javax.sound.sampled.Control[]getMemberControls()
Returns the set of member controls that comprise the compound control.

return
the set of member controls.

	
	Control[] localArray = new Control[controls.length];
	
	for (int i = 0; i < controls.length; i++) {
	    localArray[i] = controls[i];
	}
	
	return localArray;
    
public java.lang.StringtoString()
Provides a string representation of the control

return
a string description

	
	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.");