public final class CmsBurstEventManager
extends java.lang.Object
Usage example:
Window.addResizeHandler(new ResizeHandler() {
public void onResize(ResizeEvent event) {
CmsBurstEventManager.get().schedule("resize-window", new Command() {
public void execute() {
// resize
}
}, 200);
}
});
| 限定符和类型 | 方法和说明 |
|---|---|
void |
cancel(java.lang.String eventName)
Removes the event from the manager.
|
protected static CmsBurstEventManager |
get()
Returns the singleton instance.
|
void |
schedule(java.lang.String name,
com.google.gwt.user.client.Command command,
int delayMsec)
Adds an 'burst' event to the manager.
|
protected static CmsBurstEventManager get()
public void schedule(java.lang.String name,
com.google.gwt.user.client.Command command,
int delayMsec)
name - the unique name, which identifies the eventcommand - command to execute when the timer expiresdelayMsec - the timer delay (it's reseted if multiple events are added)public void cancel(java.lang.String eventName)
eventName - the name of the event that we need to remove