public abstract class KeyEvent extends Event
| Modifier | Constructor and Description |
|---|---|
protected |
KeyEvent(String type) |
protected |
KeyEvent(String type,
BaseComponent target,
Object data) |
| Modifier and Type | Method and Description |
|---|---|
char |
getCharCode()
Returns the character code of the depressed key(s).
|
String |
getKeycapture()
Returns the key capture representation of the typed key.
|
KeyCode |
getKeyCode()
Returns the key code of the depressed key(s).
|
boolean |
isAltKey()
Returns true if the Alt key was depressed.
|
boolean |
isCtrlKey()
Returns true if the Control key was depressed.
|
boolean |
isMetaKey()
Returns true if the Meta key was depressed.
|
boolean |
isShiftKey()
Returns true if the Shift key was depressed.
|
getCurrentTarget, getData, getPage, getRelatedTarget, getTarget, getTargetId, getType, isStopped, stopPropagationprotected KeyEvent(String type)
protected KeyEvent(String type, BaseComponent target, Object data)
public boolean isAltKey()
public boolean isCtrlKey()
public boolean isShiftKey()
public boolean isMetaKey()
public KeyCode getKeyCode()
public char getCharCode()
public String getKeycapture()
Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.