public class KeyDownEvent extends KeyCodeEvent<KeyDownHandler>
DomEvent.Type<H extends EventHandler>
Modifier | Constructor and Description |
---|---|
protected |
KeyDownEvent()
Protected constructor, use
DomEvent.fireNativeEvent(com.google.gwt.dom.client.NativeEvent, com.google.gwt.event.shared.HasHandlers)
to fire key down events. |
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(KeyDownHandler handler)
Should only be called by
HandlerManager . |
DomEvent.Type<KeyDownHandler> |
getAssociatedType()
Returns the
Event.Type used to register this event, allowing an
EventBus to find handlers of the appropriate class. |
static DomEvent.Type<KeyDownHandler> |
getType()
Gets the event type associated with key down events.
|
getNativeKeyCode, isArrow, isDownArrow, isLeftArrow, isRightArrow, isUpArrow, toDebugString
isAltKeyDown, isAnyModifierKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown
fireNativeEvent, fireNativeEvent, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
protected KeyDownEvent()
DomEvent.fireNativeEvent(com.google.gwt.dom.client.NativeEvent, com.google.gwt.event.shared.HasHandlers)
to fire key down events.public static DomEvent.Type<KeyDownHandler> getType()
public final DomEvent.Type<KeyDownHandler> getAssociatedType()
Event
Event.Type
used to register this event, allowing an
EventBus
to find handlers of the appropriate class.getAssociatedType
in class DomEvent<KeyDownHandler>
protected void dispatch(KeyDownHandler handler)
GwtEvent
HandlerManager
. In other words, do not use
or call.dispatch
in class GwtEvent<KeyDownHandler>
handler
- handlerEventBus.dispatchEvent(Event, Object)