Package org.gnome.gtk
Enum Class AccessibleState
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<AccessibleState>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum AccessibleState
extends Enum<AccessibleState>
implements Enumeration
The possible accessible states of a
Accessible
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA “busy” state.A “checked” state; indicates the current state of aCheckButton
.A “disabled” state; corresponds to theWidget:sensitive
property.An “expanded” state; corresponds to theExpander:expanded
property.A “hidden” state; corresponds to theWidget:visible
property.An “invalid” state; set when a widget is showing an error.A “pressed” state; indicates the current state of aToggleButton
.A “selected” state; set when a widget is selected.Indicates that a widget with the GTK_ACCESSIBLE_ROLE_LINK has been visited. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the AccessibleState classint
getValue()
Get the numeric value of this enumvoid
Initializesvalue
with the appropriate type for the this AccessibleState.static AccessibleState
of
(int value) Create a new AccessibleState for the provided valuestatic AccessibleState
Returns the enum constant of this class with the specified name.static AccessibleState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BUSY
A “busy” state. This state has boolean values -
CHECKED
A “checked” state; indicates the current state of aCheckButton
. Value type:AccessibleTristate
-
DISABLED
A “disabled” state; corresponds to theWidget:sensitive
property. It indicates a UI element that is perceivable, but not editable or operable. Value type: boolean -
EXPANDED
An “expanded” state; corresponds to theExpander:expanded
property. Value type: boolean or undefined -
HIDDEN
A “hidden” state; corresponds to theWidget:visible
property. You can use this state explicitly on UI elements that should not be exposed to an assistive technology. Value type: boolean See also:DISABLED
-
INVALID
An “invalid” state; set when a widget is showing an error. Value type:AccessibleInvalidState
-
PRESSED
A “pressed” state; indicates the current state of aToggleButton
. Value type:AccessibleTristate
enumeration -
SELECTED
A “selected” state; set when a widget is selected. Value type: boolean or undefined -
VISITED
Indicates that a widget with the GTK_ACCESSIBLE_ROLE_LINK has been visited. Value type: boolean.
-
-
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
-
of
Create a new AccessibleState for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-
initValue
Initializesvalue
with the appropriate type for the this AccessibleState.This function is mostly meant for language bindings, in conjunction with gtk_accessible_update_relation_state().
- Parameters:
value
- an uninitializedGValue
-