We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.ui.
Class VLazyExecutor
java.lang.Object
com.vaadin.terminal.gwt.client.ui.VLazyExecutor
- extends Object
public class VLazyExecutor
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 |
Constructor Detail |
---|
VLazyExecutor
public VLazyExecutor(int delayMs,
com.google.gwt.core.client.Scheduler.ScheduledCommand cmd)
Parameters:
delayMs
- Delay in milliseconds to wait before executing the command
cmd
- The command to execute
Method Detail |
---|
trigger
public void trigger()
Triggers execution of the command. Each call reschedules any existing
execution to delayMs
milliseconds from that point in time.