public enum Key extends Enum<Key>
KeyEvent
Enum Constant and Description |
---|
BACKSPACE |
CTRL_A |
CTRL_B |
CTRL_C |
CTRL_D |
CTRL_E |
CTRL_F |
CTRL_G |
CTRL_K |
CTRL_L |
CTRL_N |
CTRL_OB |
CTRL_P |
CTRL_QM |
DELETE |
Modifier and Type | Field and Description |
---|---|
short |
code |
Modifier and Type | Method and Description |
---|---|
static Key |
valueOf(int code) |
static Key |
valueOf(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.
|
public static final Key CTRL_A
public static final Key CTRL_B
public static final Key CTRL_C
public static final Key CTRL_D
public static final Key CTRL_E
public static final Key CTRL_F
public static final Key CTRL_G
public static final Key CTRL_K
public static final Key CTRL_L
public static final Key CTRL_N
public static final Key CTRL_P
public static final Key CTRL_OB
public static final Key CTRL_QM
public static final Key BACKSPACE
public static final Key DELETE
public static Key[] values()
for (Key c : Key.values()) System.out.println(c);
public static Key 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 nullpublic static Key valueOf(int code)
Copyright © 2008-2012 Sonatype. All Rights Reserved.