Enum Class Key
- All Implemented Interfaces:
Serializable,Comparable<Key>,Constable
-
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 TypeMethodDescriptionchargetChar()intintstatic KeygetForChar(char character) static KeygetForCode(int code) intintintintintbooleanvoidvoidbooleanvoidsetLastPressedLocation(KeyLocation location) static KeyReturns the enum constant of this class with the specified name.static Key[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE
-
SIX
-
SEVEN
-
EIGHT
-
NINE
-
ZERO
-
ESC
-
TAB
-
CAPS
-
WINDOWS
-
CTRL
-
ALT
-
SHIFT
-
SPACE
-
BACKSPACE
-
ENTER
-
DELETE
-
MINUS
-
EQUALS
-
BACK_QUOTE
-
OPEN_BRACKET
-
CLOSE_BRACKET
-
BACK_SLASH
-
COMMA
-
PERIOD
-
FORWARD_SLASH
-
SEMICOLON
-
SINGLE_QUOTE
-
LEFT
-
UP
-
RIGHT
-
DOWN
-
F1
-
F2
-
F3
-
F4
-
F5
-
F6
-
F7
-
F8
-
F9
-
F10
-
F11
-
F12
-
TILDE
-
EXCLAMATION
-
AT
-
POUND
-
DOLLAR
-
PERCENT
-
CARET
-
AND
-
ASTERISK
-
LEFT_PAREN
-
RIGHT_PAREN
-
UNDERSCORE
-
PLUS
-
OPEN_CURLY_BRACKET
-
CLOSE_CURLY_BRACKET
-
PIPE
-
LESS_THAN
-
GREATER_THAN
-
QUESTION_MARK
-
COLON
-
DOUBLE_QUOTES
-
-
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
-
requiresTyped
public boolean requiresTyped() -
isPressed
public boolean isPressed() -
markReleased
public void markReleased() -
markPressed
public void markPressed() -
setLastPressedLocation
-
getChar
public char getChar() -
getForCode
-
getForChar
-
getKeyCode
public int getKeyCode() -
getKeyChar
public int getKeyChar() -
getDefaultModifiers
public int getDefaultModifiers() -
getDefaultLocation
-
getRawCode
public int getRawCode() -
getPrimaryLevelUnicode
public int getPrimaryLevelUnicode() -
getExtendedKeyCode
public int getExtendedKeyCode() -
getScanCode
public int getScanCode() -
getLastPressedLocation
-