|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.ChangeActionAdapter
An adapter class for receiving change events, and performing actions in response to those events.
| Field Summary | |
protected ActionSequence |
changeActions
List of actions to be performed upon the notification of adjustment change events. |
| Constructor Summary | |
ChangeActionAdapter()
|
|
| Method Summary | |
void |
addChangeAction(ActionListener a)
Adds the given action listener to this adapter so that it will be performed when the state of the target object is adjusted. |
ActionSequence |
getChangeActions()
Returns the action sequence for change events. |
void |
removeChangeAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when the state of the target object is adjusted. |
void |
setChangeActions(ActionSequence sequence)
Sets the action sequence for change events to the provided action sequence. |
void |
stateChanged(ChangeEvent evt)
Performs the stored action sequence when the state of the target object is changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ActionSequence changeActions
| Constructor Detail |
public ChangeActionAdapter()
| Method Detail |
public final void stateChanged(ChangeEvent evt)
stateChanged in interface ChangeListenerevt - the change event to be handledpublic void addChangeAction(ActionListener a)
a - the action to be performedremoveChangeAction(ActionListener),
setChangeActions(ActionSequence),
getChangeActions()public void removeChangeAction(ActionListener a)
a - the action to be removedaddChangeAction(ActionListener),
setChangeActions(ActionSequence),
getChangeActions()public void setChangeActions(ActionSequence sequence)
null, the action sequence
for change events is cleared.
sequence - the desired action sequencegetChangeActions(),
addChangeAction(ActionListener),
removeChangeAction(ActionListener)public ActionSequence getChangeActions()
setChangeActions(ActionSequence),
addChangeAction(ActionListener),
removeChangeAction(ActionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||