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
 

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.