Package FlaNium.WinAPI.elements.enums
Enum ToggleState
- java.lang.Object
-
- java.lang.Enum<ToggleState>
-
- FlaNium.WinAPI.elements.enums.ToggleState
-
- All Implemented Interfaces:
Serializable,Comparable<ToggleState>
public enum ToggleState extends Enum<ToggleState>
Contains values that specify the toggle state of a Microsoft UI Automation element that implements the ITogglePattern.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INDETERMINATEThe UI Automation element is in an indeterminate state.OFFThe UI Automation element is not selected, checked, marked or otherwise activated.ONThe UI Automation element is selected, checked, marked or otherwise activated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ToggleStategetEnum(String value)StringgetValue()static ToggleStatevalueOf(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.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ToggleState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ToggleState c : ToggleState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ToggleState valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
getEnum
public static ToggleState getEnum(String value)
-
-