| nextapp.echo2.app.button.ToggleButtonModel
All known Subclasses: nextapp.echo2.app.button.DefaultToggleButtonModel,
ToggleButtonModel | public interface ToggleButtonModel extends ButtonModel(Code) | | Model for two-state toggle button components.
|
Method Summary | |
public void | addChangeListener(ChangeListener l) Adds a ChangeListener to receive notification of state
changes, i.e., to the selected state of a ToggleButton . | public boolean | isSelected() Returns the selection state. | public void | removeChangeListener(ChangeListener l) Removes a ChangeListener from being notified of state
changes, i.e., to the selected state of a ToggleButton . | public void | setSelected(boolean newValue) Sets the selection state. |
addChangeListener | public void addChangeListener(ChangeListener l)(Code) | | Adds a ChangeListener to receive notification of state
changes, i.e., to the selected state of a ToggleButton .
Parameters: l - the listener to add |
isSelected | public boolean isSelected()(Code) | | Returns the selection state.
the selection state |
removeChangeListener | public void removeChangeListener(ChangeListener l)(Code) | | Removes a ChangeListener from being notified of state
changes, i.e., to the selected state of a ToggleButton .
Parameters: l - the listener to remove |
setSelected | public void setSelected(boolean newValue)(Code) | | Sets the selection state.
Parameters: newValue - the new selection state |
|
|