public class AtomicControlAdapter extends Object implements AtomicControl
| Modifier and Type | Field and Description |
|---|---|
protected Component |
component
VARIABLES
|
protected boolean |
enabled |
protected boolean |
isdefault |
protected Control |
parent |
| Constructor and Description |
|---|
AtomicControlAdapter(Component c,
boolean def,
Control parent)
constructs an atomic control adapter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addControlChangeListener(ControlChangeListener ccl)
Add a listener that should be informed if any state of this control
changes.
|
Component |
getControlComponent()
returns control component associated with the control adapter
|
boolean |
getEnabled()
Returns the enabled/disabled state of the control.
|
Control |
getParent()
Returns the control group to which this control belongs, if any.
|
String |
getTip()
Sun specific - Returns the description string for this control.
|
boolean |
getVisible()
Returns true if this control is available on the control panel.
|
void |
informListeners()
informs listeners about changes in control's state
|
boolean |
isDefault()
Returns true if this control is available on the default control
panel returned for the player in question.
|
boolean |
isReadOnly()
returns whether the control is read only
return true if the control is read-only
|
void |
removeControlChangeListener(ControlChangeListener ccl)
Remove an already added listener.
|
void |
setEnabled(boolean enabled)
Set the enabled/disabled state of the control.
|
void |
setParent(Control p)
sets the parent control for the specified control
|
void |
setTip(String tip)
Sun specific -
Sets the description string for this control.
|
void |
setVisible(boolean visible)
Specify whether this control should be available on the control panel.
|
protected Component component
protected boolean isdefault
protected Control parent
protected boolean enabled
public boolean isDefault()
isDefault in interface AtomicControlpublic void setVisible(boolean visible)
setVisible in interface AtomicControlvisible - if true, the control is visiblepublic boolean getVisible()
getVisible in interface AtomicControlpublic void setEnabled(boolean enabled)
setEnabled in interface AtomicControlenabled - if true, the control is enabledpublic boolean getEnabled()
getEnabled in interface AtomicControlpublic void setParent(Control p)
p - parent controlpublic Control getParent()
getParent in interface AtomicControlpublic void addControlChangeListener(ControlChangeListener ccl)
addControlChangeListener in interface AtomicControlccl - listener to be added to the list of registered listenerspublic void removeControlChangeListener(ControlChangeListener ccl)
removeControlChangeListener in interface AtomicControlccl - listener to be removed from the list of registered listenerspublic void informListeners()
public String getTip()
getTip in interface AtomicControlpublic void setTip(String tip)
setTip in interface AtomicControltip - tip stringpublic Component getControlComponent()
getControlComponent in interface Controlpublic boolean isReadOnly()
isReadOnly in interface AtomicControlCopyright © 2012 code4tv.com. All Rights Reserved.