com.vaadin.terminal.gwt.client.ui
Class VLazyExecutor
java.lang.Object
com.vaadin.terminal.gwt.client.ui.VLazyExecutor
public class VLazyExecutor
- extends Object
Executes the given command delayMs
milliseconds after a call to
trigger()
. Calling trigger()
again before the command has
been executed causes the execution to be rescheduled to delayMs
after
the second call.
Constructor Summary |
VLazyExecutor(int delayMs,
com.google.gwt.core.client.Scheduler.ScheduledCommand cmd)
|
Method Summary |
void |
trigger()
Triggers execution of the command. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VLazyExecutor
public VLazyExecutor(int delayMs,
com.google.gwt.core.client.Scheduler.ScheduledCommand cmd)
- Parameters:
delayMs
- Delay in milliseconds to wait before executing the commandcmd
- The command to execute
trigger
public void trigger()
- Triggers execution of the command. Each call reschedules any existing
execution to
delayMs
milliseconds from that point in time.
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.