|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.util.watch.ModificationWatcher
public final class ModificationWatcher
Monitors one or more Modifiable objects, calling a ChangeListener when a given object's modification time changes.
| Constructor Summary | |
|---|---|
ModificationWatcher()
For two-phase construction |
|
ModificationWatcher(Duration pollFrequency)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
add(IModifiable modifiable,
IChangeListener listener)
Adds a Modifiable object and an IChangeListener to call when the modifiable object is modified. |
void |
destroy()
stops the modification watcher from watching. |
IModifiable |
remove(IModifiable modifiable)
Remove all entries associated with 'modifiable' |
void |
start(Duration pollFrequency)
Start watching at a given polling rate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ModificationWatcher()
public ModificationWatcher(Duration pollFrequency)
pollFrequency - How often to check on modifiables| Method Detail |
|---|
public final boolean add(IModifiable modifiable,
IChangeListener listener)
modifiable - The modifiable thing to monitorlistener - The listener to call if the modifiable is modified
public IModifiable remove(IModifiable modifiable)
modifiable -
public void start(Duration pollFrequency)
pollFrequency - The poll ratepublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||