Enum Class KeystrokeChooser.Action
java.lang.Object
java.lang.Enum<KeystrokeChooser.Action>
com.inductiveautomation.factorypmi.designer.scripteditor.KeystrokeChooser.Action
- All Implemented Interfaces:
Serializable, Comparable<KeystrokeChooser.Action>, 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 action's English name, as written into a saved keystroke's display string.The action's radio-button label in the chooser, in the Designer's locale.static @Nullable KeystrokeChooser.Actiontoken()The token the schema and the stroke string use.toString()static KeystrokeChooser.ActionReturns the enum constant of this class with the specified name.static KeystrokeChooser.Action[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRESSED
-
RELEASED
-
TYPED
-
-
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"pressed".- Returns:
- the action the token names, or
nullif it names none.
-
token
The token the schema and the stroke string use. -
label
The action's English name, as written into a saved keystroke's display string. Not localized, for the reason given onKeystrokeChooser.Modifier.label(). -
localizedLabel
The action's radio-button label in the chooser, in the Designer's locale. -
toString
- Overrides:
toStringin classEnum<KeystrokeChooser.Action>
-