|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.util.watch.Watcher
public final class Watcher
Similar to ModificationWatcher but manually triggered, calling all registered ChangeListeners when a given object is triggered.
| Constructor Summary | |
|---|---|
Watcher()
Constructor |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object key,
IChangeListener listener)
Adds a key and an IChangeListener to call when the key is triggered. |
void |
clear()
Remove all entries |
void |
notifyListeners(java.lang.Object key)
trigger all listeners registered with key |
java.lang.Object |
remove(java.lang.Object key)
Remove all entries associated with 'modifiable' |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Watcher()
| Method Detail |
|---|
public final boolean add(java.lang.Object key,
IChangeListener listener)
Note: the value is ignored if the key and an associated value already exists. Only the listeners is added (if an equals does not already exist).
key - The key to identifiy a ChangeListenerSetlistener - The listener to call if the key gets triggered
public java.lang.Object remove(java.lang.Object key)
key -
public void clear()
public void notifyListeners(java.lang.Object key)
key - The key to identify the ChangeListenerSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||