|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.listener.ListenerSet
public abstract class ListenerSet
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.
| Constructor Summary | |
|---|---|
ListenerSet()
|
|
| Method Summary | |
|---|---|
boolean |
add(IListener listener)
Adds a listener to this set of listeners. |
protected abstract void |
notifyListener(IListener listener)
Notifies a listener. |
void |
notifyListeners()
Notifies each listener in this set by calling notifyListener. |
void |
remove(IListener 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(IListener listener)
listener - The listener to add
public void notifyListeners()
public void remove(IListener listener)
listener - The listener to removeprotected abstract void notifyListener(IListener listener)
listener - The listener to notify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||