Example usage for com.google.gwt.core.client Scheduler scheduleFixedDelay

List of usage examples for com.google.gwt.core.client Scheduler scheduleFixedDelay

Introduction

In this page you can find the example usage for com.google.gwt.core.client Scheduler scheduleFixedDelay.

Prototype

public abstract void scheduleFixedDelay(RepeatingCommand cmd, int delayMs);

Source Link

Document

Schedules a repeating command that is scheduled with a constant delay.

Usage

From source file:eu.maxschuster.vaadin.signaturefield.client.signaturepad.Debouncer.java

License:Apache License

public void execute() {
    Scheduler scheduler = Scheduler.get();
    if (!debouncing) {
        debouncing = true;//w  w w .ja v  a2s  .com
        scheduler.scheduleFixedDelay(wrapperCommand, delay);
    }
}