|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.watch.ModificationWatcher
public class ModificationWatcher
Monitors one or more IModifiable objects, calling a IChangeListener when a given object's modification time changes.
| Constructor Summary | |
|---|---|
ModificationWatcher()
Default constructor for two-phase construction. |
|
ModificationWatcher(Duration pollFrequency)
Constructor that accepts a Duration argument representing the poll frequency. |
|
| Method Summary | |
|---|---|
boolean |
add(IModifiable modifiable,
IChangeListener listener)
Adds an IModifiable object and an IChangeListener object to call
when the modifiable object is modified. |
void |
destroy()
Stops this ModificationWatcher. |
Set<IModifiable> |
getEntries()
Retrieves a key set of all IModifiable objects currently being monitored. |
IModifiable |
remove(IModifiable modifiable)
Removes all entries associated with an IModifiable object. |
void |
start(Duration pollFrequency)
Starts watching at a given Duration 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)
Duration argument representing the poll frequency.
pollFrequency - how often to check on IModifiables| Method Detail |
|---|
public final boolean add(IModifiable modifiable,
IChangeListener listener)
IModificationWatcherIModifiable object and an IChangeListener object to call
when the modifiable object is modified.
add in interface IModificationWatchermodifiable - an IModifiable object to monitorlistener - an IChangeListener to call if the IModifiable object is
modified
true if the set did not already contain the specified elementIModificationWatcher.add(org.apache.wicket.util.watch.IModifiable,
org.apache.wicket.util.listener.IChangeListener)public IModifiable remove(IModifiable modifiable)
IModificationWatcherIModifiable object.
remove in interface IModificationWatchermodifiable - an IModifiable object
IModifiable object that was removed, else nullIModificationWatcher.remove(org.apache.wicket.util.watch.IModifiable)public void start(Duration pollFrequency)
IModificationWatcherDuration polling rate.
start in interface IModificationWatcherpollFrequency - the polling rate DurationIModificationWatcher.start(org.apache.wicket.util.time.Duration)public void destroy()
IModificationWatcherModificationWatcher.
destroy in interface IModificationWatcherIModificationWatcher.destroy()public final Set<IModifiable> getEntries()
IModificationWatcherIModifiable objects currently being monitored.
getEntries in interface IModificationWatcherSet of all IModifiable entries currently maintainedIModificationWatcher.getEntries()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||