- All Implemented Interfaces:
Serializable
,Comparable<Key>
,Constable
Key enum contains information about keyboard keys.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA key.Alt key.B key.Back Quote key.Backslash key.Backspace key.C key.Caps Lock key.Carriage Return key.Comma key.Control key.D key.Delete key.Down key.E key.8 key.End key.Enter key.Equals key.Escape key.F key.F1 key.F10 key.F11 key.F12 key.F2 key.F3 key.F4 key.F5 key.F6 key.F7 key.F8 key.F8 key.5 key.Forward Slash key.4 key.G key.H key.Home key.Hyphen key.I key.Insert key.J key.K key.L key.Left key.Left Bracket key.M key.N key.9 key.Divide key.Num 8 key.Num 5 key.Num 4 key.Num Lock key.Minus key.Multiply key.Num 9 key.Num 1 key.Plus key.Point key.Num 7 key.Num 6 key.Num 3 key.Num 2 key.Num 0 key.O key.1 key.P key.Page Down key.Page Up key.Period key.Q key.R key.Right key.Right Bracket key.S key.Semi Colon key.7 key.Shift key.Single Quote key.6 key.Space key.T key.Tab key.3 key.2 key.U key.Up key.V key.W key.X key.Y key.Z key.0 key. -
Method Summary
-
Enum Constant Details
-
BACKSPACE
Backspace key. -
TAB
Tab key. -
ENTER
Enter key. -
CARRIAGE_RETURN
Carriage Return key. -
SHIFT
Shift key. -
CONTROL
Control key. -
ALT
Alt key. -
CAPS_LOCK
Caps Lock key. -
ESCAPE
Escape key. -
SPACE
Space key. -
PAGE_UP
Page Up key. -
PAGE_DOWN
Page Down key. -
END
End key. -
HOME
Home key. -
LEFT
Left key. -
UP
Up key. -
RIGHT
Right key. -
DOWN
Down key. -
COMMA
Comma key. -
HYPHEN
Hyphen key. -
PERIOD
Period key. -
FORWARD_SLASH
Forward Slash key. -
ZERO
0 key. -
ONE
1 key. -
TWO
2 key. -
THREE
3 key. -
FOUR
4 key. -
FIVE
5 key. -
SIX
6 key. -
SEVEN
7 key. -
EIGHT
8 key. -
NINE
9 key. -
SEMI_COLON
Semi Colon key. -
EQUALS
Equals key. -
A
A key. -
B
B key. -
C
C key. -
D
D key. -
E
E key. -
F
F key. -
G
G key. -
H
H key. -
I
I key. -
J
J key. -
K
K key. -
L
L key. -
M
M key. -
N
N key. -
O
O key. -
P
P key. -
Q
Q key. -
R
R key. -
S
S key. -
T
T key. -
U
U key. -
V
V key. -
W
W key. -
X
X key. -
Y
Y key. -
Z
Z key. -
LEFT_BRACKET
Left Bracket key. -
BACKSLASH
Backslash key. -
RIGHT_BRACKET
Right Bracket key. -
NUM_ZERO
Num 0 key. -
NUM_ONE
Num 1 key. -
NUM_TWO
Num 2 key. -
NUM_THREE
Num 3 key. -
NUM_FOUR
Num 4 key. -
NUM_FIVE
Num 5 key. -
NUM_SIX
Num 6 key. -
NUM_SEVEN
Num 7 key. -
NUM_EIGHT
Num 8 key. -
NUM_NINE
Num 9 key. -
NUM_MULTIPLY
Multiply key. -
NUM_PLUS
Plus key. -
NUM_MINUS
Minus key. -
NUM_POINT
Point key. -
NUM_DIVIDE
Divide key. -
F1
F1 key. -
F2
F2 key. -
F3
F3 key. -
F4
F4 key. -
F5
F5 key. -
F6
F6 key. -
F7
F7 key. -
F8
F8 key. -
F9
F8 key. -
F10
F10 key. -
F11
F11 key. -
F12
F12 key. -
DELETE
Delete key. -
NUM_LOCK
Num Lock key. -
INSERT
Insert key. -
BACK_QUOTE
Back Quote key. -
SINGLE_QUOTE
Single Quote key.
-
-
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
-
getCode
public int getCode()- Returns:
- the ASCII code of the Key
-
getName
- Returns:
- the display name of the Key
-