public enum SpecialKey extends Enum<SpecialKey>
Enum Constant and Description |
---|
ALT |
CTRL |
CURSOR_DOWN |
CURSOR_LEFT |
CURSOR_RIGHT |
CURSOR_UP |
DELETE |
END |
ESC |
ILLEGAL |
INSERT |
PAGEDOWN |
PAGEUP |
POS1 |
SHIFT |
Modifier and Type | Method and Description |
---|---|
int |
getCode() |
String |
getName() |
static SpecialKey |
getSpecialKey(String name) |
String |
toString() |
static SpecialKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpecialKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SpecialKey SHIFT
public static final SpecialKey CTRL
public static final SpecialKey ALT
public static final SpecialKey ESC
public static final SpecialKey PAGEUP
public static final SpecialKey PAGEDOWN
public static final SpecialKey END
public static final SpecialKey POS1
public static final SpecialKey CURSOR_LEFT
public static final SpecialKey CURSOR_UP
public static final SpecialKey CURSOR_RIGHT
public static final SpecialKey CURSOR_DOWN
public static final SpecialKey INSERT
public static final SpecialKey DELETE
public static final SpecialKey ILLEGAL
public static SpecialKey[] values()
for (SpecialKey c : SpecialKey.values()) System.out.println(c);
public static SpecialKey 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 String getName()
public int getCode()
public static SpecialKey getSpecialKey(String name)
public String toString()
toString
in class Enum<SpecialKey>
Copyright © 2015. All rights reserved.