public enum ToggleState extends java.lang.Enum<ToggleState> implements INativeEnum
| Enum Constant and Description |
|---|
Indeterminate
The UI Automation element is in an indeterminate state.
|
Off
The UI Automation element is not selected, checked, marked or otherwise activated.
|
On
The UI Automation element is selected, checked, marked or otherwise activated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<ToggleState> |
fromNativeValue(int nativeValue) |
java.lang.String |
getConstantName() |
int |
getNativeValue() |
static ToggleState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ToggleState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToggleState Off
public static final ToggleState On
public static final ToggleState Indeterminate
public static ToggleState[] values()
for (ToggleState c : ToggleState.values()) System.out.println(c);
public static ToggleState valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getNativeValue()
getNativeValue in interface INativeEnumpublic java.lang.String getConstantName()
getConstantName in interface INativeEnumpublic static java.util.Optional<ToggleState> fromNativeValue(int nativeValue)