| java.lang.Object com.gwtext.client.core.JsObject com.gwtext.client.util.DelayedTask
DelayedTask | public class DelayedTask extends JsObject (Code) | | Provides a convenient method of performing setTimeout where a new timeout cancels the old timeout.
An example would be performing validation on a keypress. You can use this class to buffer the keypress events for a
certain number of milliseconds, and perform only if they stop for that amount of time.
|
Constructor Summary | |
public | DelayedTask() Creates a new DelayedTask. |
Method Summary | |
native public void | cancel() Cancel the last queued timeout. | native public void | delay(int delay, Function task) Cancels any pending timeout and queues a new one. |
DelayedTask | public DelayedTask()(Code) | | Creates a new DelayedTask.
|
cancel | native public void cancel()(Code) | | Cancel the last queued timeout.
|
delay | native public void delay(int delay, Function task)(Code) | | Cancels any pending timeout and queues a new one.
Parameters: delay - the milliseconds to delay Parameters: task - the task |
Fields inherited from com.gwtext.client.core.JsObject | protected JavaScriptObject jsObj(Code)(Java Doc)
|
|
|