|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.PropertyChangeActionAdapter
An adapter class for receiving property change events, and performing action listeners in response to those events.
| Field Summary | |
protected ActionSequence |
changeActions
List of action listeners to be performed upon the notification of property change events. |
| Constructor Summary | |
PropertyChangeActionAdapter()
Constructs a property change action adapter. |
|
PropertyChangeActionAdapter(Component target)
Constructs a property change action adapter listening for property change events generated by the given component. |
|
| Method Summary | |
void |
addPropertyChangeAction(ActionListener a)
Adds an action listener to this adapter so that it will be performed when a property is changed. |
ActionSequence |
getPropertyChangeActions()
Returns the action sequence for property change events. |
void |
propertyChange(PropertyChangeEvent evt)
Performs the stored action sequence when a property has been changed. |
void |
removePropertyChangeAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when a property is changed. |
void |
setPropertyChangeActions(ActionSequence sequence)
Sets the action sequence for property change events to the provided action sequence. |
| 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 PropertyChangeActionAdapter()
public PropertyChangeActionAdapter(Component target)
null, this adapter does not listen
to a particular component by default.
target - the source component to listen to| Method Detail |
public final void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerevt - the property change event to be handledpublic void addPropertyChangeAction(ActionListener a)
a - the action listener to be performedremovePropertyChangeAction(ActionListener),
setPropertyChangeActions(ActionSequence),
getPropertyChangeActions()public void removePropertyChangeAction(ActionListener a)
a - the action listener to be removedaddPropertyChangeAction(ActionListener),
setPropertyChangeActions(ActionSequence),
getPropertyChangeActions()public void setPropertyChangeActions(ActionSequence sequence)
null, the action sequence
for property change events is cleared.
sequence - the desired action sequencegetPropertyChangeActions(),
addPropertyChangeAction(ActionListener),
removePropertyChangeAction(ActionListener)public ActionSequence getPropertyChangeActions()
setPropertyChangeActions(ActionSequence),
addPropertyChangeAction(ActionListener),
removePropertyChangeAction(ActionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||