|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.applicate.selection.SelectionSupport
public class SelectionSupport
Helper class that simplify SelectionListener registration and the
notification of SelectionEvent to registered listeners.
| Constructor Summary | |
|---|---|
SelectionSupport()
|
|
| Method Summary | |
|---|---|
void |
addSelectionListener(SelectionListener listener)
Register a new listener so that it will be notified of selection events. |
void |
notifySelectionListeners(SelectionEvent event)
Notify a new event to all the registered listeners. |
void |
removeSelectionListener(SelectionListener listener)
De-register a previously registered listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionSupport()
| Method Detail |
|---|
public void addSelectionListener(SelectionListener listener)
listener - the listener to be registeredpublic void removeSelectionListener(SelectionListener listener)
listener - the listener to be de-registeredpublic void notifySelectionListeners(SelectionEvent event)
event - the event to be notified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||