com.sencha.gxt.core.client.util
Class DelayedTask

java.lang.Object
  extended by com.sencha.gxt.core.client.util.DelayedTask

public abstract class DelayedTask
extends java.lang.Object

A Timer that is canceled if a new request is made.


Constructor Summary
DelayedTask()
          Creates a new delayed task.
 
Method Summary
 void cancel()
          Cancels the task.
 void delay(int delay)
          Cancels any running timers and starts a new one.
abstract  void onExecute()
          Called when the task should execute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedTask

public DelayedTask()
Creates a new delayed task.

Method Detail

cancel

public void cancel()
Cancels the task.


delay

public void delay(int delay)
Cancels any running timers and starts a new one.

Parameters:
delay - the delay in ms

onExecute

public abstract void onExecute()
Called when the task should execute.



Copyright © 2012. All Rights Reserved.