Enum Class KeyModifier

java.lang.Object
java.lang.Enum<KeyModifier>
com.hp.lft.sdk.KeyModifier
All Implemented Interfaces:
Serializable, Comparable<KeyModifier>, java.lang.constant.Constable

public enum KeyModifier extends Enum<KeyModifier>
Represents keyboard keys that can be pressed and held down during the execution of a method, such as the SendKeys method.
  • Enum Constant Details

    • CTRL

      public static final KeyModifier CTRL
      A control key.
    • LEFT_CTRL

      public static final KeyModifier LEFT_CTRL
      The left control key.
    • RIGHT_CTRL

      public static final KeyModifier RIGHT_CTRL
      The right control key.
    • ALT

      public static final KeyModifier ALT
      An Alt key.
    • LEFT_ALT

      public static final KeyModifier LEFT_ALT
      The left Alt key.
    • RIGHT_ALT

      public static final KeyModifier RIGHT_ALT
      The right Alt key.
    • SHIFT

      public static final KeyModifier SHIFT
      A Shift key.
    • LEFT_SHIFT

      public static final KeyModifier LEFT_SHIFT
      The left Shift key.
    • RIGHT_SHIFT

      public static final KeyModifier RIGHT_SHIFT
      The right Shift key.
  • Method Details

    • values

      public static KeyModifier[] 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 KeyModifier 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