|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.quadrique.jbuildingblocks.gui.SelectionHandler
public class SelectionHandler
This class provides a generic selection handling framework It handles multiple selection events and provides a simple common interface for all the selection handling events + listeners
| Constructor Summary | |
|---|---|
SelectionHandler()
Constructor |
|
| Method Summary | |
|---|---|
void |
addListener(SelectionListener zListener)
Call this method to register and to be notiifed of selection changes |
static SelectionHandler |
getInstance()
This method returns an instance of the SelectionHandler class. |
void |
newSelection(SelectionBaseEvent zEvent)
Whenever a new selection occurs, the correspondIng component needs to call this method so that all the registered listener(s) can be notified of the selection change |
void |
removeListener(SelectionListener zListener)
Call this method to remove a previously registered listener |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SelectionHandler()
| Method Detail |
|---|
public static final SelectionHandler getInstance()
public void newSelection(SelectionBaseEvent zEvent)
zEvent - the selection event
public void addListener(SelectionListener zListener)
throws Exception
zListener - a reference to an instance of a class that implements the
SelectionListener interface.
Exception - if an error occurspublic void removeListener(SelectionListener zListener)
zListener - a reference to an instance of a class that implements the
SelectionListener interface.SelectionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||