Enum Class KeystrokeChooser.Modifier
java.lang.Object
java.lang.Enum<KeystrokeChooser.Modifier>
com.inductiveautomation.factorypmi.designer.scripteditor.KeystrokeChooser.Modifier
- All Implemented Interfaces:
Serializable, Comparable<KeystrokeChooser.Modifier>, Constable
- Enclosing class:
KeystrokeChooser
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionlabel()The modifier's English name, as written into a saved keystroke's display string.The modifier's check-box label in the chooser, in the Designer's locale.static @Nullable KeystrokeChooser.Modifiertoken()The token the schema and the stroke string use.toString()static KeystrokeChooser.ModifierReturns the enum constant of this class with the specified name.static KeystrokeChooser.Modifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SHIFT
-
BUTTON1
-
CTRL
-
BUTTON2
-
ALT
-
BUTTON3
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
ofToken
- Parameters:
token- a stroke-string or schema token, such as"ctrl".- Returns:
- the modifier the token names, or
nullif it names none.
-
token
The token the schema and the stroke string use. -
label
The modifier's English name, as written into a saved keystroke's display string. Not localized: that string also names the keystroke's script resource, so it must not depend on the locale of whoever saved it. -
localizedLabel
The modifier's check-box label in the chooser, in the Designer's locale. -
toString
- Overrides:
toStringin classEnum<KeystrokeChooser.Modifier>
-