public enum KeyModifier extends java.lang.Enum<KeyModifier>
Modifier and Type | Field and Description |
---|---|
static KeyModifier[] |
MODIFIER_VALUES |
Modifier and Type | Method and Description |
---|---|
static KeyModifier |
getActiveModifier() |
abstract java.lang.String |
getLocalizedComboName(int keyCode) |
abstract boolean |
isActive() |
static boolean |
isKeyCodeModifier(int keyCode) |
abstract boolean |
matches(int keyCode) |
static KeyModifier |
valueFromString(java.lang.String stringValue) |
static KeyModifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyModifier CONTROL
public static final KeyModifier SHIFT
public static final KeyModifier ALT
public static final KeyModifier NONE
public static final KeyModifier[] MODIFIER_VALUES
public static KeyModifier[] values()
for (KeyModifier c : KeyModifier.values()) System.out.println(c);
public static KeyModifier 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 static KeyModifier getActiveModifier()
public static boolean isKeyCodeModifier(int keyCode)
public static KeyModifier valueFromString(java.lang.String stringValue)
public abstract boolean matches(int keyCode)
public abstract boolean isActive()
public abstract java.lang.String getLocalizedComboName(int keyCode)