Enum Class ToggleState

java.lang.Object
java.lang.Enum<ToggleState>
at.bestsolution.uia.ToggleState
All Implemented Interfaces:
INativeEnum, Serializable, Comparable<ToggleState>, Constable

public enum ToggleState extends Enum<ToggleState> implements INativeEnum
Contains values that specify the toggle state of a Microsoft UI Automation element that implements the Toggle control pattern.
  • Enum Constant Details

    • Off

      public static final ToggleState Off
      The UI Automation element is not selected, checked, marked or otherwise activated.
    • On

      public static final ToggleState On
      The UI Automation element is selected, checked, marked or otherwise activated.
    • Indeterminate

      public static final ToggleState Indeterminate
      The UI Automation element is in an indeterminate state.
  • Method Details

    • values

      public static ToggleState[] 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 ToggleState 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
    • getNativeValue

      public int getNativeValue()
      Specified by:
      getNativeValue in interface INativeEnum
    • getConstantName

      public String getConstantName()
      Specified by:
      getConstantName in interface INativeEnum
    • fromNativeValue

      public static Optional<ToggleState> fromNativeValue(int nativeValue)