public class EventDispatcher
extends com.google.gwt.core.client.JavaScriptObject
| Modifier and Type | Field and Description |
|---|---|
static EventType |
ACTIVATE
Dispatched when Flash Player or an AIR application gains operating system
focus and becomes active.
|
static EventType |
DEACTIVATE
Dispatched when Flash Player or an AIR application gains operating system
focus and becomes active.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EventDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
<T extends Event> |
addEventListener(EventType type,
EventHandler<T> listener,
boolean useCapture,
int priority,
boolean useWeakReference)
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
|
static EventDispatcher |
create() |
boolean |
dispatchEvent(Event event)
Dispatches an event into the event flow.
|
boolean |
hasEventListener(EventType type)
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
|
void |
removeEventListener(EventType type,
EventHandler<?> listener,
boolean useCapture)
Removes a listener from the EventDispatcher object.
|
boolean |
willTrigger(EventType type)
Checks whether an event listener is registered with this EventDispatcher
object or any of its ancestors for the specified event type.
|
public static final EventType ACTIVATE
public static final EventType DEACTIVATE
public static EventDispatcher create()
public final <T extends Event> void addEventListener(EventType type, EventHandler<T> listener, boolean useCapture, int priority, boolean useWeakReference)
public final boolean dispatchEvent(Event event)
public final boolean hasEventListener(EventType type)
type - public final void removeEventListener(EventType type, EventHandler<?> listener, boolean useCapture)
type - public final boolean willTrigger(EventType type)
Copyright © 2013. All Rights Reserved.