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?
|
String |
toDebugString()
This is a method used primarily for debugging.
|
isAltKeyDown, isAnyModifierKeyDown, isControlKeyDown, isMetaKeyDown, isShiftKeyDown
fireNativeEvent, fireNativeEvent, getAssociatedType, getNativeEvent, getRelativeElement, 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 String toDebugString()
Event
toDebugString
in class Event<H extends EventHandler>
Copyright © 2016. All rights reserved.