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>
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 theWKeyEvent.getCharCode()method instead.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A'A' keyAltAlt key.B'B' keyBackspaceBackspace key.C'C' keyControlControl key.D'D' keyDeleteDelete key.DownDown arrow key.E'E' keyEndEnd key.EnterEnter key.EscapeEscape key.F'F' keyF1F1 function key.F10F10 function key.F11F11 function key.F12F12 function key.F2F2 function key.F3F3 function key.F4F4 function key.F5F5 function key.F6F6 function key.F7F7 function key.F8F8 function key.F9F9 function key.G'G' keyH'H' keyHomeHome key.I'I' keyInsertInsert key.J'J' keyK'K' keyKey_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' keyL'L' keyLeftLeft arrow key.M'M' keyN'N' keyO'O' keyP'P' keyPageDownPage down key.PageUpPage up key.Q'Q' keyR'R' keyRightRight arrow key.S'S' keyShiftShift key.SpaceSpace.T'T' keyTabTab key.U'U' keyUnknownUnknown key.UpUp arrow key.V'V' keyW'W' keyX'X' keyY'Y' keyZ'Z' key
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()Returns the numerical representation of this enum.static KeyvalueOf(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.
-
-
-
Enum Constant Detail
-
Unknown
public static final Key Unknown
Unknown key.
-
Enter
public static final Key Enter
Enter key.
-
Tab
public static final Key Tab
Tab key.
-
Backspace
public static final Key Backspace
Backspace key.
-
Shift
public static final Key Shift
Shift key.
-
Control
public static final Key Control
Control key.
-
Alt
public static final Key Alt
Alt key.
-
PageUp
public static final Key PageUp
Page up key.
-
PageDown
public static final Key PageDown
Page down key.
-
End
public static final Key End
End key.
-
Home
public static final Key Home
Home key.
-
Left
public static final Key Left
Left arrow key.
-
Up
public static final Key Up
Up arrow key.
-
Right
public static final Key Right
Right arrow key.
-
Down
public static final Key Down
Down arrow key.
-
Insert
public static final Key Insert
Insert key.
-
Delete
public static final Key Delete
Delete key.
-
Escape
public static final Key Escape
Escape key.
-
F1
public static final Key F1
F1 function key.
-
F2
public static final Key F2
F2 function key.
-
F3
public static final Key F3
F3 function key.
-
F4
public static final Key F4
F4 function key.
-
F5
public static final Key F5
F5 function key.
-
F6
public static final Key F6
F6 function key.
-
F7
public static final Key F7
F7 function key.
-
F8
public static final Key F8
F8 function key.
-
F9
public static final Key F9
F9 function key.
-
F10
public static final Key F10
F10 function key.
-
F11
public static final Key F11
F11 function key.
-
F12
public static final Key F12
F12 function key.
-
Space
public static final Key Space
Space.
-
A
public static final Key A
'A' key
-
B
public static final Key B
'B' key
-
C
public static final Key C
'C' key
-
D
public static final Key D
'D' key
-
E
public static final Key E
'E' key
-
F
public static final Key F
'F' key
-
G
public static final Key G
'G' key
-
H
public static final Key H
'H' key
-
I
public static final Key I
'I' key
-
J
public static final Key J
'J' key
-
K
public static final Key K
'K' key
-
L
public static final Key L
'L' key
-
M
public static final Key M
'M' key
-
N
public static final Key N
'N' key
-
O
public static final Key O
'O' key
-
P
public static final Key P
'P' key
-
Q
public static final Key Q
'Q' key
-
R
public static final Key R
'R' key
-
S
public static final Key S
'S' key
-
T
public static final Key T
'T' key
-
U
public static final Key U
'U' key
-
V
public static final Key V
'V' key
-
W
public static final Key W
'W' key
-
X
public static final Key X
'X' key
-
Y
public static final Key Y
'Y' key
-
Z
public static final Key Z
'Z' key
-
Key_1
public static final Key Key_1
'1' key
-
Key_2
public static final Key Key_2
'2' key
-
Key_3
public static final Key Key_3
'3' key
-
Key_4
public static final Key Key_4
'4' key
-
Key_5
public static final Key Key_5
'5' key
-
Key_6
public static final Key Key_6
'6' key
-
Key_7
public static final Key Key_7
'7' key
-
Key_8
public static final Key Key_8
'8' key
-
Key_9
public static final Key Key_9
'9' key
-
Key_0
public static final Key Key_0
'0' key
-
-
Method Detail
-
values
public static Key[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Key c : Key.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Key valueOf(java.lang.String name)
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.
-
-