public enum Keys extends Enum<Keys> implements CharSequence
| 限定符和类型 | 方法和说明 |
|---|---|
char |
charAt(int index) |
static String |
chord(CharSequence... value)
Simulate pressing many keys at once in a "chord".
|
static String |
chord(Iterable<CharSequence> value) |
static Keys |
getKeyFromUnicode(char key)
Get the special key representation,
Keys, of the supplied character if there is one. |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
static Keys |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Keys[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
chars, codePointspublic 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(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public char charAt(int index)
charAt 在接口中 CharSequencepublic int length()
length 在接口中 CharSequencepublic CharSequence subSequence(int start, int end)
subSequence 在接口中 CharSequencepublic static String chord(CharSequence... value)
value - characters to sendpublic static String chord(Iterable<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