Enum Class AccessibleState

java.lang.Object
java.lang.Enum<AccessibleState>
org.gnome.gtk.AccessibleState
All Implemented Interfaces:
Serializable, Comparable<AccessibleState>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum AccessibleState extends Enum<AccessibleState> implements Enumeration
The possible accessible states of a Accessible.
  • Enum Constant Details

    • BUSY

      public static final AccessibleState BUSY
      A “busy” state. This state has boolean values
    • CHECKED

      public static final AccessibleState CHECKED
      A “checked” state; indicates the current state of a CheckButton. Value type: AccessibleTristate
    • DISABLED

      public static final AccessibleState DISABLED
      A “disabled” state; corresponds to the Widget:sensitive property. It indicates a UI element that is perceivable, but not editable or operable. Value type: boolean
    • EXPANDED

      public static final AccessibleState EXPANDED
      An “expanded” state; corresponds to the Expander:expanded property. Value type: boolean or undefined
    • HIDDEN

      public static final AccessibleState HIDDEN
      A “hidden” state; corresponds to the Widget: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

      public static final AccessibleState INVALID
      An “invalid” state; set when a widget is showing an error. Value type: AccessibleInvalidState
    • PRESSED

      public static final AccessibleState PRESSED
      A “pressed” state; indicates the current state of a ToggleButton. Value type: AccessibleTristate enumeration
    • SELECTED

      public static final AccessibleState SELECTED
      A “selected” state; set when a widget is selected. Value type: boolean or undefined
    • VISITED

      public static final AccessibleState VISITED
      Indicates that a widget with the GTK_ACCESSIBLE_ROLE_LINK has been visited. Value type: boolean.
      Since:
      4.12
  • Method Details

    • values

      public static AccessibleState[] 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 AccessibleState 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
    • of

      public static AccessibleState of(int value)
      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 interface Enumeration
      Returns:
      the enum value
    • of

      public static AccessibleState of(MemorySegment address)
      Create a new AccessibleState for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the AccessibleState class.
      Returns:
      the GType
    • initValue

      public void initValue(Value value)

      Initializes value with the appropriate type for the state.

      This function is mostly meant for language bindings, in conjunction with gtk_accessible_update_relation_state().

      Parameters:
      value - an uninitialized GValue