|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.listener.ListenerSet<T>
T
- public abstract class ListenerSet<T extends IListener>
Holds a set of listeners implementing the IListener tag interface. Subclasses can implement notification methods that cast the listener to the correct subinterface and invoke the appropriate listener method. Note that these classes are not meant to be serializable or for you to hold them in session (see WICKET-2697)
Constructor Summary | |
---|---|
ListenerSet()
|
Method Summary | |
---|---|
boolean |
add(T listener)
Adds a listener to this set of listeners. |
protected abstract void |
notifyListener(T listener)
Notifies a listener. |
void |
notifyListeners()
Notifies each listener in this set by calling notifyListener. |
void |
remove(T listener)
Removes a listener from this set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListenerSet()
Method Detail |
---|
public boolean add(T listener)
listener
- The listener to add
public void notifyListeners()
public void remove(T listener)
listener
- The listener to removeprotected abstract void notifyListener(T listener)
listener
- The listener to notify
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |