public enum Key extends Enum<Key>
| Enum Constant and Description |
|---|
A |
ALT |
B |
BACKSPACE |
C |
CLEAR |
CONTROL |
CTRL |
D |
DELETE |
DOWN |
E |
END |
ENTER |
ESCAPE |
F |
F1 |
F10 |
F11 |
F12 |
F2 |
F3 |
F4 |
F5 |
F6 |
F7 |
F8 |
F9 |
G |
H |
HOME |
I |
J |
K |
KEY_DOWN |
KEY_UP |
L |
LEFT |
M |
N |
O |
P |
PAGE_DOWN |
PAGE_UP |
Q |
R |
RIGHT |
S |
SHIFT |
SPACE |
T |
TAB |
U |
UP |
V |
VK_0 |
VK_1 |
VK_2 |
VK_3 |
VK_4 |
VK_5 |
VK_6 |
VK_7 |
VK_8 |
VK_9 |
W |
X |
Y |
Z |
| Modifier and Type | Method and Description |
|---|---|
int |
getKeyId()
Returns the integer representation of the key.
|
static Key[] |
parseKeyList(String keys)
Parses a string list of keys
Delimiter: +
E.g.: ALT + TAB
|
static Key |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Key[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Key SHIFT
public static final Key CONTROL
public static final Key CTRL
public static final Key ALT
public static final Key DELETE
public static final Key CLEAR
public static final Key BACKSPACE
public static final Key TAB
public static final Key ENTER
public static final Key ESCAPE
public static final Key SPACE
public static final Key VK_0
public static final Key VK_1
public static final Key VK_2
public static final Key VK_3
public static final Key VK_4
public static final Key VK_5
public static final Key VK_6
public static final Key VK_7
public static final Key VK_8
public static final Key VK_9
public static final Key A
public static final Key B
public static final Key C
public static final Key D
public static final Key E
public static final Key F
public static final Key G
public static final Key H
public static final Key I
public static final Key J
public static final Key K
public static final Key L
public static final Key M
public static final Key N
public static final Key O
public static final Key P
public static final Key Q
public static final Key R
public static final Key S
public static final Key T
public static final Key U
public static final Key V
public static final Key W
public static final Key X
public static final Key Y
public static final Key Z
public static final Key F1
public static final Key F2
public static final Key F3
public static final Key F4
public static final Key F5
public static final Key F6
public static final Key F7
public static final Key F8
public static final Key F9
public static final Key F10
public static final Key F11
public static final Key F12
public static final Key LEFT
public static final Key UP
public static final Key RIGHT
public static final Key DOWN
public static final Key PAGE_UP
public static final Key PAGE_DOWN
public static final Key END
public static final Key HOME
public static final Key KEY_DOWN
public static final Key KEY_UP
public static Key[] values()
for (Key c : Key.values()) System.out.println(c);
public static Key valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getKeyId()
public static Key[] parseKeyList(String keys) throws IllegalArgumentException
keys - IllegalArgumentExceptionCopyright © 2007-2012 Global Information Systems Group, ETH Zurich. All Rights Reserved.