com.extjs.gxt.ui.client.util
Class DelayedTask

java.lang.Object
  extended by com.extjs.gxt.ui.client.util.DelayedTask

public class DelayedTask
extends java.lang.Object

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


Constructor Summary
DelayedTask(Listener<?> listener)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedTask

public DelayedTask(Listener<?> listener)
Creates a new delayed task.

Parameters:
listener - the listener to be called
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