Methods Summary |
---|
public void | addControlChangeListener(com.sun.media.controls.ControlChangeListener ccl)Add a listener that should be informed if any state of this control
changes.
if (listeners == null) {
listeners = new Vector();
}
if (ccl != null) {
listeners.addElement(ccl);
}
|
public java.awt.Component | getControlComponent()
return component;
|
public boolean | getEnabled()Returns the enabled/disabled state of the control.
return enabled;
|
public javax.media.Control | getParent()Returns the control group to which this control belongs, if any. Otherwise
it returns null.
return parent;
|
public java.lang.String | getTip() Sun specific - Returns the description string for this control.
return null;
|
public boolean | getVisible()Returns true if this control is available on the control panel. ???
return true;
|
public void | informListeners()
if (listeners != null) {
for (int i = 0; i < listeners.size(); i++) {
ControlChangeListener ccl =
(ControlChangeListener) listeners.elementAt(i);
ccl.controlChanged( new ControlChangeEvent(this) );
}
}
|
public boolean | isDefault()Returns true if this control is available on the default control
panel returned for the player in question.
return isdefault;
|
public boolean | isReadOnly()
return false;
|
public void | removeControlChangeListener(com.sun.media.controls.ControlChangeListener ccl)Remove an already added listener. Does nothing if the listener was not
previously added.
if (listeners != null && ccl != null)
listeners.removeElement(ccl);
|
public void | setEnabled(boolean enabled)Set the enabled/disabled state of the control. Can be useful to
temporarily gray out a control due to some constraints.
this.enabled = enabled;
if (component != null)
component.setEnabled(enabled);
informListeners();
|
public void | setParent(javax.media.Control p)
parent = p;
|
public void | setTip(java.lang.String tip) Sun specific -
Sets the description string for this control. Should be short since it
will be displayed as a tool tip when the mouse hovers over the control
for a few seconds.
//dummy
|
public void | setVisible(boolean visible)Specify whether this control should be available on the control panel.
???
// dummy
|