|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.gwt.user.client.DeferredUpdater
public class DeferredUpdater
Schedules updates for an Updatable object and ensures that only the most recent update is actually executed.
| Field Summary | |
|---|---|
static int |
DEFAULT_DELAY
The default number of milliseconds to wait before executing an update. |
| Constructor Summary | |
|---|---|
DeferredUpdater(Updatable updatable)
Creates a new deferred updater for the specified Updatable object. |
|
DeferredUpdater(Updatable updatable,
int delay)
Creates a new deferred updater for the specified Updatable object. |
|
| Method Summary | |
|---|---|
void |
deferUpdate()
Cancels any pending updates and schedule a new update for the underlying object. |
void |
onElapsed(Timer sender)
Called whenever the delay period of the timer elapses. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_DELAY
| Constructor Detail |
|---|
public DeferredUpdater(Updatable updatable)
Updatable object. The updates are delayed with the
default number of milliseconds, 500. Only the most recent update is executed.
updatable - the object whose updates are going to be deferred
public DeferredUpdater(Updatable updatable,
int delay)
Updatable object. The updates are delayed with the
specified number of milliseconds. Only the most recent update is executed.
updatable - the object whose updates are going to be deferreddelay - the number of milliseconds to wait before executing an update| Method Detail |
|---|
public void deferUpdate()
public void onElapsed(Timer sender)
TimerListener
onElapsed in interface TimerListenersender - The timer whose delay period elapsed. The listener should be registered to this timer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||