public enum ShiftKey extends Enum<ShiftKey>
Enum Constant and Description |
---|
Alt
The ALT key is pressed.
|
Ctrl
The CTRL key is pressed.
|
NoShift
No modifier keys (SHIFT, CTRL or ALT) are pressed.
|
Shift
The SHIFT key is pressed.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static ShiftKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShiftKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShiftKey NoShift
public static final ShiftKey Shift
public static final ShiftKey Alt
public static final ShiftKey Ctrl
public static ShiftKey[] values()
for (ShiftKey c : ShiftKey.values()) System.out.println(c);
public static ShiftKey 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 int getValue()
Copyright © 2020 SmartBear Software. All Rights Reserved.