com.vaadin.client.ui.

Class 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 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.