public enum VirtualKey extends java.lang.Enum<VirtualKey>
Enum Constant and Description |
---|
A |
ALT |
ARROW_DOWN |
ARROW_LEFT |
ARROW_RIGHT |
ARROW_UP |
B |
BACK_SPACE |
C |
CAPS_LOCK |
CONTROL |
D |
DELETE |
DIGIT_0 |
DIGIT_1 |
DIGIT_2 |
DIGIT_3 |
DIGIT_4 |
DIGIT_5 |
DIGIT_6 |
DIGIT_7 |
DIGIT_8 |
DIGIT_9 |
E |
END |
ENTER |
ESC |
F |
F1 |
F10 |
F11 |
F12 |
F2 |
F3 |
F4 |
F5 |
F6 |
F7 |
F8 |
F9 |
G |
H |
HOME |
I |
INSERT |
J |
K |
L |
M |
N |
O |
P |
PAGE_DOWN |
PAGE_UP |
PAUSE |
Q |
R |
S |
SHIFT |
SPACE |
T |
TAB |
U |
UNDEFINED
The key pressed or released is not defined as a virtual key.
|
V |
W |
X |
Y |
Z |
Modifier and Type | Method and Description |
---|---|
java.lang.Character |
getCharacter()
Gets a character representation of the virtual key, or null, if the virtual key is not
representable by a character.
|
java.lang.String |
getLabel()
Gets the label of the key.
|
boolean |
isCharacter() |
static VirtualKey |
toVirtualKey(char character)
Gets the virtual key for a char.
|
static VirtualKey |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VirtualKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VirtualKey F1
public static final VirtualKey F2
public static final VirtualKey F3
public static final VirtualKey F4
public static final VirtualKey F5
public static final VirtualKey F6
public static final VirtualKey F7
public static final VirtualKey F8
public static final VirtualKey F9
public static final VirtualKey F10
public static final VirtualKey F11
public static final VirtualKey F12
public static final VirtualKey ENTER
public static final VirtualKey BACK_SPACE
public static final VirtualKey TAB
public static final VirtualKey SHIFT
public static final VirtualKey CONTROL
public static final VirtualKey ALT
public static final VirtualKey PAUSE
public static final VirtualKey CAPS_LOCK
public static final VirtualKey ESC
public static final VirtualKey SPACE
public static final VirtualKey PAGE_UP
public static final VirtualKey PAGE_DOWN
public static final VirtualKey END
public static final VirtualKey HOME
public static final VirtualKey DELETE
public static final VirtualKey INSERT
public static final VirtualKey ARROW_LEFT
public static final VirtualKey ARROW_UP
public static final VirtualKey ARROW_RIGHT
public static final VirtualKey ARROW_DOWN
public static final VirtualKey DIGIT_0
public static final VirtualKey DIGIT_1
public static final VirtualKey DIGIT_2
public static final VirtualKey DIGIT_3
public static final VirtualKey DIGIT_4
public static final VirtualKey DIGIT_5
public static final VirtualKey DIGIT_6
public static final VirtualKey DIGIT_7
public static final VirtualKey DIGIT_8
public static final VirtualKey DIGIT_9
public static final VirtualKey A
public static final VirtualKey B
public static final VirtualKey C
public static final VirtualKey D
public static final VirtualKey E
public static final VirtualKey F
public static final VirtualKey G
public static final VirtualKey H
public static final VirtualKey I
public static final VirtualKey J
public static final VirtualKey K
public static final VirtualKey L
public static final VirtualKey M
public static final VirtualKey N
public static final VirtualKey O
public static final VirtualKey P
public static final VirtualKey Q
public static final VirtualKey R
public static final VirtualKey S
public static final VirtualKey T
public static final VirtualKey U
public static final VirtualKey V
public static final VirtualKey W
public static final VirtualKey X
public static final VirtualKey Y
public static final VirtualKey Z
public static final VirtualKey UNDEFINED
public static VirtualKey[] values()
for (VirtualKey c : VirtualKey.values()) System.out.println(c);
public static VirtualKey valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getLabel()
public java.lang.Character getCharacter()
public boolean isCharacter()
public static VirtualKey toVirtualKey(char character)
character
- The char to get the virtual key forSiehe auch Jowidgets Nutzerhandbuch