Package eu.webtoolkit.jwt
Enum Class Key
- All Implemented Interfaces:
Serializable
,Comparable<Key>
,Constable
Enumeration for key codes.
These are key codes that identify a key on a keyboard. All keys listed here can be identified
across all browsers and (Western) keyboards. A Key is returned by WKeyEvent.getKey()
. If
you want to identify a character, you should use the WKeyEvent.getCharCode()
method
instead.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription'A' keyAlt key.'B' keyBackspace key.'C' keyControl key.'D' keyDelete key.Down arrow key.'E' keyEnd key.Enter key.Escape key.'F' keyF1 function key.F10 function key.F11 function key.F12 function key.F2 function key.F3 function key.F4 function key.F5 function key.F6 function key.F7 function key.F8 function key.F9 function key.'G' key'H' keyHome key.'I' keyInsert key.'J' key'K' key'0' key'1' key'2' key'3' key'4' key'5' key'6' key'7' key'8' key'9' key'L' keyLeft arrow key.'M' key'N' key'O' key'P' keyPage down key.Page up key.'Q' key'R' keyRight arrow key.'S' keyShift key.Space.'T' keyTab key.'U' keyUnknown key.Up arrow key.'V' key'W' key'X' key'Y' key'Z' key -
Method Summary
-
Enum Constant Details
-
Unknown
Unknown key. -
Enter
Enter key. -
Tab
Tab key. -
Backspace
Backspace key. -
Shift
Shift key. -
Control
Control key. -
Alt
Alt key. -
PageUp
Page up key. -
PageDown
Page down key. -
End
End key. -
Home
Home key. -
Left
Left arrow key. -
Up
Up arrow key. -
Right
Right arrow key. -
Down
Down arrow key. -
Insert
Insert key. -
Delete
Delete key. -
Escape
Escape key. -
F1
F1 function key. -
F2
F2 function key. -
F3
F3 function key. -
F4
F4 function key. -
F5
F5 function key. -
F6
F6 function key. -
F7
F7 function key. -
F8
F8 function key. -
F9
F9 function key. -
F10
F10 function key. -
F11
F11 function key. -
F12
F12 function key. -
Space
Space. -
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 -
Key_1
'1' key -
Key_2
'2' key -
Key_3
'3' key -
Key_4
'4' key -
Key_5
'5' key -
Key_6
'6' key -
Key_7
'7' key -
Key_8
'8' key -
Key_9
'9' key -
Key_0
'0' 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
-
getValue
public int getValue()Returns the numerical representation of this enum.
-