public enum Keys extends java.lang.Enum<Keys> implements java.lang.CharSequence
Enum Constant and Description |
---|
ADD |
ALT |
ARROW_DOWN |
ARROW_LEFT |
ARROW_RIGHT |
ARROW_UP |
BACK_SPACE |
CANCEL |
CLEAR |
COMMAND |
CONTROL |
DECIMAL |
DELETE |
DIVIDE |
DOWN |
END |
ENTER |
EQUALS |
ESCAPE |
F1 |
F10 |
F11 |
F12 |
F2 |
F3 |
F4 |
F5 |
F6 |
F7 |
F8 |
F9 |
HELP |
HOME |
INSERT |
LEFT |
LEFT_ALT |
LEFT_CONTROL |
LEFT_SHIFT |
META |
MULTIPLY |
NULL |
NUMPAD0 |
NUMPAD1 |
NUMPAD2 |
NUMPAD3 |
NUMPAD4 |
NUMPAD5 |
NUMPAD6 |
NUMPAD7 |
NUMPAD8 |
NUMPAD9 |
PAGE_DOWN |
PAGE_UP |
PAUSE |
RETURN |
RIGHT |
SEMICOLON |
SEPARATOR |
SHIFT |
SPACE |
SUBTRACT |
TAB |
UP |
ZENKAKU_HANKAKU |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
static java.lang.String |
chord(java.lang.CharSequence... value)
Simulate pressing many keys at once in a "chord".
|
static java.lang.String |
chord(java.lang.Iterable<java.lang.CharSequence> value) |
int |
getCodePoint() |
static Keys |
getKeyFromUnicode(char key)
Get the special key representation,
Keys , of the supplied character if there is one. |
int |
length() |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
static Keys |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Keys[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Keys NULL
public static final Keys CANCEL
public static final Keys HELP
public static final Keys BACK_SPACE
public static final Keys TAB
public static final Keys CLEAR
public static final Keys RETURN
public static final Keys ENTER
public static final Keys SHIFT
public static final Keys LEFT_SHIFT
public static final Keys CONTROL
public static final Keys LEFT_CONTROL
public static final Keys ALT
public static final Keys LEFT_ALT
public static final Keys PAUSE
public static final Keys ESCAPE
public static final Keys SPACE
public static final Keys PAGE_UP
public static final Keys PAGE_DOWN
public static final Keys END
public static final Keys HOME
public static final Keys LEFT
public static final Keys ARROW_LEFT
public static final Keys UP
public static final Keys ARROW_UP
public static final Keys RIGHT
public static final Keys ARROW_RIGHT
public static final Keys DOWN
public static final Keys ARROW_DOWN
public static final Keys INSERT
public static final Keys DELETE
public static final Keys SEMICOLON
public static final Keys EQUALS
public static final Keys NUMPAD0
public static final Keys NUMPAD1
public static final Keys NUMPAD2
public static final Keys NUMPAD3
public static final Keys NUMPAD4
public static final Keys NUMPAD5
public static final Keys NUMPAD6
public static final Keys NUMPAD7
public static final Keys NUMPAD8
public static final Keys NUMPAD9
public static final Keys MULTIPLY
public static final Keys ADD
public static final Keys SEPARATOR
public static final Keys SUBTRACT
public static final Keys DECIMAL
public static final Keys DIVIDE
public static final Keys F1
public static final Keys F2
public static final Keys F3
public static final Keys F4
public static final Keys F5
public static final Keys F6
public static final Keys F7
public static final Keys F8
public static final Keys F9
public static final Keys F10
public static final Keys F11
public static final Keys F12
public static final Keys META
public static final Keys COMMAND
public static final Keys ZENKAKU_HANKAKU
public static Keys[] values()
for (Keys c : Keys.values()) System.out.println(c);
public static Keys valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getCodePoint()
public char charAt(int index)
charAt
in interface java.lang.CharSequence
public int length()
length
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Enum<Keys>
public static java.lang.String chord(java.lang.CharSequence... value)
value
- characters to sendpublic static java.lang.String chord(java.lang.Iterable<java.lang.CharSequence> value)
value
- characters to sendchord(CharSequence...)
public static Keys getKeyFromUnicode(char key)
Keys
, of the supplied character if there is one. If
there is no special key tied to this character, null will be returned.key
- unicode character code