H
- handler typepublic abstract class KeyCodeEvent<H extends EventHandler> extends KeyEvent<H>
DomEvent.Type<H extends EventHandler>
Constructor and Description |
---|
KeyCodeEvent() |
Modifier and Type | Method and Description |
---|---|
int |
getNativeKeyCode()
Gets the native key code.
|
static boolean |
isArrow(int keyCode)
Does the key code represent an arrow key?
|
boolean |
isDownArrow()
Is this a key down arrow?
|
boolean |
isLeftArrow()
Is this a left arrow?
|
boolean |
isRightArrow()
Is this a right arrow?
|
boolean |
isUpArrow()
Is this a up arrow?
|
java.lang.String |
toDebugString()
This is a method used primarily for debugging.
|
isAltKeyDown, isAnyModifierKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, init, preventDefault, setNativeEvent, setRelativeElement, stopPropagation
public static boolean isArrow(int keyCode)
keyCode
- the key codepublic int getNativeKeyCode()
KeyCodes
class.public boolean isDownArrow()
public boolean isLeftArrow()
public boolean isRightArrow()
public boolean isUpArrow()
public java.lang.String toDebugString()
Event
toDebugString
in class Event<H extends EventHandler>