public class KeyDownEvent extends BrowserEvent<KeyDownHandler> implements Cancellable
GwtEvent.Type<H>jsObj| Constructor and Description |
|---|
KeyDownEvent(JavaScriptObject jsObj) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Call this method to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
|
protected void |
dispatch(KeyDownHandler handler) |
static <S extends HasKeyDownHandlers & HasHandlers> |
fire(S source,
JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
GwtEvent.Type<KeyDownHandler> |
getAssociatedType() |
static GwtEvent.Type<KeyDownHandler> |
getType()
Gets the type associated with this event.
|
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDownassertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringpublic KeyDownEvent(JavaScriptObject jsObj)
public static <S extends HasKeyDownHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S - The event sourcesource - the source of the handlersjsObj - the native eventpublic static GwtEvent.Type<KeyDownHandler> getType()
protected void dispatch(KeyDownHandler handler)
dispatch in class GwtEvent<KeyDownHandler>public final GwtEvent.Type<KeyDownHandler> getAssociatedType()
getAssociatedType in class GwtEvent<KeyDownHandler>public void cancel()
cancel in interface Cancellablepublic boolean isCancelled()
isCancelled in interface Cancellable