public enum Keys extends Enum<Keys>
An enumeration class defining constants for special keys on a standard keyboard.
This enumeration class is used for defining special keys in a way independent on a specific GUI library. It contains constants for keys that do not represent normal alphanumeric letters or viewable characters, but have a special meaning.
Enum Constant and Description |
---|
BACKSPACE
The backspace key.
|
DELETE
The delete key.
|
DOWN
The down arrow key.
|
END
The end key.
|
ENTER
The enter key.
|
ESCAPE
The escape key.
|
F1
The function key F1.
|
F10
The function key F10.
|
F11
The function key F11.
|
F12
The function key F12.
|
F13
The function key F13.
|
F14
The function key F14.
|
F15
The function key F15.
|
F16
The function key F16.
|
F2
The function key F2.
|
F3
The function key F3.
|
F4
The function key F4.
|
F5
The function key F5.
|
F6
The function key F6.
|
F7
The function key F7.
|
F8
The function key F8.
|
F9
The function key F9.
|
HOME
The home key.
|
INSERT
The insert key.
|
LEFT
The left arrow key.
|
PAGE_DOWN
The page down key.
|
PAGE_UP
The page up key.
|
PRINT_SCREEN
The print screen key.
|
RIGHT
The right arrow key.
|
SPACE
The space key.
|
TAB
The tab key.
|
UP
The up arrow key.
|
Modifier and Type | Method and Description |
---|---|
static Keys |
valueOf(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 BACKSPACE
public static final Keys DELETE
public static final Keys DOWN
public static final Keys END
public static final Keys ENTER
public static final Keys ESCAPE
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 F13
public static final Keys F14
public static final Keys F15
public static final Keys F16
public static final Keys HOME
public static final Keys INSERT
public static final Keys LEFT
public static final Keys PAGE_DOWN
public static final Keys PAGE_UP
public static final Keys PRINT_SCREEN
public static final Keys RIGHT
public static final Keys SPACE
public static final Keys TAB
public static final Keys UP
public static Keys[] values()
for (Keys c : Keys.values()) System.out.println(c);
public static Keys valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 The JGUIraffe Team. All rights reserved.