Package com.hp.lft.sdk.uiapro
Enum Class ToggleState
- All Implemented Interfaces:
com.hp.lft.sdk.internal.EnumValueProvider<Integer>
,Serializable
,Comparable<ToggleState>
,java.lang.constant.Constable
public enum ToggleState
extends Enum<ToggleState>
implements com.hp.lft.sdk.internal.EnumValueProvider<Integer>
The possible states of a toggleable object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe UI Automation element is in an indeterminate state.The UIA Pro element is not selected, checked, marked, or otherwise activated.The UIA Pro element is selected, checked, marked, or otherwise activated. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
Returns the integer value representing the ToggleState value.static ToggleState
Returns the enum constant of this class with the specified name.static ToggleState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Off
The UIA Pro element is not selected, checked, marked, or otherwise activated. -
On
The UIA Pro element is selected, checked, marked, or otherwise activated. -
Indeterminate
The UI Automation element is in an indeterminate state. Can be used to indicate whether the user has acted on a control. For example, a checkbox can appear checked and dimmed, indicating an indeterminate state. Creating an indeterminate state is different from disabling the control. Consequently, a checkbox in the indeterminate state can still receive the focus. When the user clicks an indeterminate control, the ToggleState cycles to its next value.
-
-
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
-
getValue
Returns the integer value representing the ToggleState value.- Specified by:
getValue
in interfacecom.hp.lft.sdk.internal.EnumValueProvider<Integer>
- Returns:
- the integer value representing the ToggleState value.
-