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

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

  • Method Details

    • values

      public static KeystrokeChooser.Modifier[] 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.Modifier 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.Modifier ofToken(String token)
      Parameters:
      token - a stroke-string or schema token, such as "ctrl".
      Returns:
      the modifier 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 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

      public String localizedLabel()
      The modifier's check-box label in the chooser, in the Designer's locale.
    • toString

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