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

public static enum KeystrokeChooser.Action extends Enum<KeystrokeChooser.Action>
  • Enum Constant Details

  • Method Details

    • values

      public static KeystrokeChooser.Action[] 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

      public static KeystrokeChooser.Action valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • ofToken

      public static @Nullable KeystrokeChooser.Action ofToken(String token)
      Parameters:
      token - a stroke-string or schema token, such as "pressed".
      Returns:
      the action the token names, or null if it names none.
    • token

      public String token()
      The token the schema and the stroke string use.
    • label

      public String label()
      The action's English name, as written into a saved keystroke's display string. Not localized, for the reason given on KeystrokeChooser.Modifier.label().
    • localizedLabel

      public String localizedLabel()
      The action's radio-button label in the chooser, in the Designer's locale.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<KeystrokeChooser.Action>