Enum Class Keys
- All Implemented Interfaces:
Key,Serializable,Comparable<Keys>,Constable
Provides access to a large number of predefined Keys. Please note that this collection contains
even more Keys than provided in
KeyCodes.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic KeysgetKeyByKeycode(int keyCode) static KeysintReturns the native key code of the keyReturns the string representation of the key.static KeysReturns the enum constant of this class with the specified name.static Keys[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACCENT
-
BACKSPACE
-
CAPS_LOCK
-
CIRCUMFLEX
-
COMMA
-
MINUS
-
DELETE
-
DOT
-
DOWN
-
END
-
ENTER
-
ESCAPE
-
GREATER
-
HASH
-
HOME
-
INSERT
-
LEFT
-
MENU
-
NUMLOCK
-
NUM_ZERO
-
NUM_ONE
-
NUM_TWO
-
NUM_THREE
-
NUM_FOUR
-
NUM_FIVE
-
NUM_SIX
-
NUM_SEVEN
-
NUM_EIGHT
-
NUM_NINE
-
NUM_DIVISION
-
NUM_MULTIPLY
-
NUMCOMMA
-
NUM_PLUS
-
NUM_MINUS
-
PAGEDOWN
-
PAGEUP
-
PAUSE
-
PLUS
-
QUESTIONMARK
-
RIGHT
-
SCROLL_LOCK
-
SPACE
-
TAB
-
UP
-
WIN_KEY_RIGHT
-
WIN_KEY_LEFT_META
-
F1
-
F2
-
F3
-
F4
-
F5
-
F6
-
F7
-
F8
-
F9
-
F10
-
F11
-
F12
-
ZERO
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE
-
SIX
-
SEVEN
-
EIGHT
-
NINE
-
A
-
B
-
C
-
D
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
U
-
V
-
W
-
X
-
Y
-
Z
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getStringRepresentaition
Description copied from interface:KeyReturns the string representation of the key.- Specified by:
getStringRepresentaitionin interfaceKey- Returns:
- the string representation
-
getKeys
-
getKeyByKeycode
-
getNativeKeyCode
public int getNativeKeyCode()Description copied from interface:KeyReturns the native key code of the key- Specified by:
getNativeKeyCodein interfaceKey- Returns:
- the native key code
-