Package eu.webtoolkit.jwt
Enum Key
java.lang.Object
java.lang.Enum<Key>
eu.webtoolkit.jwt.Key
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Key>
,java.lang.constant.Constable
public enum Key extends java.lang.Enum<Key>
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
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description Key_0
'0' keyKey_1
'1' keyKey_2
'2' keyKey_3
'3' keyKey_4
'4' keyKey_5
'5' keyKey_6
'6' keyKey_7
'7' keyKey_8
'8' keyKey_9
'9' keyKey_A
'A' keyKey_Alt
Alt key.Key_B
'B' keyKey_Backspace
Backspace key.Key_C
'C' keyKey_Control
Control key.Key_D
'D' keyKey_Delete
Delete key.Key_Down
Down arrow key.Key_E
'E' keyKey_End
End key.Key_Enter
Enter key.Key_Escape
Escape key.Key_F
'F' keyKey_F1
F1 function key.Key_F10
F10 function key.Key_F11
F11 function key.Key_F12
F12 function key.Key_F2
F2 function key.Key_F3
F3 function key.Key_F4
F4 function key.Key_F5
F5 function key.Key_F6
F6 function key.Key_F7
F7 function key.Key_F8
F8 function key.Key_F9
F9 function key.Key_G
'G' keyKey_H
'H' keyKey_Home
Home key.Key_I
'I' keyKey_Insert
Insert key.Key_J
'J' keyKey_K
'K' keyKey_L
'L' keyKey_Left
Left arrow key.Key_M
'M' keyKey_N
'N' keyKey_O
'O' keyKey_P
'P' keyKey_PageDown
Page down key.Key_PageUp
Page up key.Key_Q
'Q' keyKey_R
'R' keyKey_Right
Right arrow key.Key_S
'S' keyKey_Shift
Shift key.Key_Space
Space.Key_T
'T' keyKey_Tab
Tab key.Key_U
'U' keyKey_unknown
Unknown key.Key_Up
Up arrow key.Key_V
'V' keyKey_W
'W' keyKey_X
'X' keyKey_Y
'Y' keyKey_Z
'Z' key -
Method Summary
Modifier and Type Method Description int
getValue()
Returns the numerical representation of this enum.static Key
valueOf(java.lang.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.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
Key_unknown
Unknown key. -
Key_Enter
Enter key. -
Key_Tab
Tab key. -
Key_Backspace
Backspace key. -
Key_Shift
Shift key. -
Key_Control
Control key. -
Key_Alt
Alt key. -
Key_PageUp
Page up key. -
Key_PageDown
Page down key. -
Key_End
End key. -
Key_Home
Home key. -
Key_Left
Left arrow key. -
Key_Up
Up arrow key. -
Key_Right
Right arrow key. -
Key_Down
Down arrow key. -
Key_Insert
Insert key. -
Key_Delete
Delete key. -
Key_Escape
Escape key. -
Key_F1
F1 function key. -
Key_F2
F2 function key. -
Key_F3
F3 function key. -
Key_F4
F4 function key. -
Key_F5
F5 function key. -
Key_F6
F6 function key. -
Key_F7
F7 function key. -
Key_F8
F8 function key. -
Key_F9
F9 function key. -
Key_F10
F10 function key. -
Key_F11
F11 function key. -
Key_F12
F12 function key. -
Key_Space
Space. -
Key_A
'A' key -
Key_B
'B' key -
Key_C
'C' key -
Key_D
'D' key -
Key_E
'E' key -
Key_F
'F' key -
Key_G
'G' key -
Key_H
'H' key -
Key_I
'I' key -
Key_J
'J' key -
Key_K
'K' key -
Key_L
'L' key -
Key_M
'M' key -
Key_N
'N' key -
Key_O
'O' key -
Key_P
'P' key -
Key_Q
'Q' key -
Key_R
'R' key -
Key_S
'S' key -
Key_T
'T' key -
Key_U
'U' key -
Key_V
'V' key -
Key_W
'W' key -
Key_X
'X' key -
Key_Y
'Y' key -
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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()Returns the numerical representation of this enum.
-