public enum ModifierKey extends Enum<ModifierKey>
Enum Constant and Description |
---|
Alt
Alt 键
|
Ctrl
Ctrl 键
|
CtrlAlt
Ctrl + Alt 组合键
|
None
无需组合键
|
Shift
Shift 键
|
ShiftAlt
Shift + Alt 组合键
|
ShiftCtrl
Ctrl + Shift 组合键
|
ShiftCtrlAlt
Ctrl + Shift + Alt 组合键
|
Modifier and Type | Method and Description |
---|---|
static ModifierKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModifierKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModifierKey None
public static final ModifierKey Shift
public static final ModifierKey Alt
public static final ModifierKey Ctrl
public static final ModifierKey CtrlAlt
public static final ModifierKey ShiftCtrl
public static final ModifierKey ShiftAlt
public static final ModifierKey ShiftCtrlAlt
public static ModifierKey[] values()
for (ModifierKey c : ModifierKey.values()) System.out.println(c);
public static ModifierKey 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 2009-2012 Micro Focus. All Rights Reserved.