|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.neu.ccs.gui.ListSelectionActionAdapter
An adapter class for receiving list selection events, and performing action listeners in response to those events.
| Field Summary | |
protected ActionSequence |
selectionActions
List of action listeners to be performed upon the notification of list selection events. |
| Constructor Summary | |
ListSelectionActionAdapter()
Constructs a list selection action adapter. |
|
ListSelectionActionAdapter(ListSelectionModel model)
Constructs a list selection action adapter listening for list selection events generated by the given list selection model. |
|
| Method Summary | |
void |
addListSelectionAction(ActionListener a)
Adds an action listener to this adapter so that it will be performed when a list selection is made. |
ActionSequence |
getListSelectionActions()
Returns the action sequence for list selection events. |
void |
removeListSelectionAction(ActionListener a)
Removes the given action listener from this adapter so that it will be no longer be performed when a list selection is made. |
void |
setListSelectionActions(ActionSequence sequence)
Sets the action sequence for list selection events to the provided action sequence. |
void |
valueChanged(ListSelectionEvent evt)
Performs the stored action listener sequence when a list selection has been made. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ActionSequence selectionActions
| Constructor Detail |
public ListSelectionActionAdapter()
public ListSelectionActionAdapter(ListSelectionModel model)
null, this adapter does not listen
to a particular list selection model by default.
model - the list selection model to listen to| Method Detail |
public final void valueChanged(ListSelectionEvent evt)
valueChanged in interface ListSelectionListenerevt - the list selection event to be handledpublic void addListSelectionAction(ActionListener a)
a - the action listener to be performedremoveListSelectionAction(ActionListener),
setListSelectionActions(ActionSequence),
getListSelectionActions()public void removeListSelectionAction(ActionListener a)
a - the action listener to be removedaddListSelectionAction(ActionListener),
setListSelectionActions(ActionSequence),
getListSelectionActions()public void setListSelectionActions(ActionSequence sequence)
null, the action sequence
for list selection events is cleared.
sequence - the desired action sequencegetListSelectionActions(),
addListSelectionAction(ActionListener),
removeListSelectionAction(ActionListener)public ActionSequence getListSelectionActions()
setListSelectionActions(ActionSequence),
addListSelectionAction(ActionListener),
removeListSelectionAction(ActionListener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||