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()
com.google.web.bindery.event.shared.Event
toDebugString
in class com.google.web.bindery.event.shared.Event<H extends EventHandler>
Copyright © 2018. All rights reserved.