|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectasquare.gwt.debug.client.EventPreviewDispatcher
public final class EventPreviewDispatcher
The EventPreview facility adds listeners to a stack, and only the
listener on top of the stack previews events. This class distributes events
to 1 or more listeners if it is on top of the stack. It will be pushed down
the stack if a PopupPanel or
DialogBox is shown.
| Method Summary | |
|---|---|
static void |
addListener(DebugEventListener listener)
Adds the specified listener. |
boolean |
onEventPreview(Event event)
|
static void |
removeListener(DebugEventListener listener)
Removes the specified listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void addListener(DebugEventListener listener)
listener is the first
listener added, the dispatcher will be added to the top of the
EventPreview
stack.
listener - public static void removeListener(DebugEventListener listener)
listener is only
remaining listener, the dispatcher will be removed from the
EventPreview
stack.
listener - public boolean onEventPreview(Event event)
onEventPreview in interface EventPreview
|
GWT Tk 0.2.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||