Class ATContext.Builder<B extends ATContext.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
ATContext

public static class ATContext.Builder<B extends ATContext.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public ATContext build()
      Finish building the ATContext object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ATContext.
      Overrides:
      build in class GObject.Builder<B extends ATContext.Builder<B>>
      Returns:
      a new instance of ATContext with the properties that were set in the Builder object.
    • setAccessible

      public B setAccessible(Accessible accessible)
      The GtkAccessible that created the GtkATContext instance.
      Parameters:
      accessible - the value for the accessible property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setAccessibleRole

      public B setAccessibleRole(AccessibleRole accessibleRole)

      The accessible role used by the AT context.

      Depending on the given role, different states and properties can be set or retrieved.

      Parameters:
      accessibleRole - the value for the accessible-role property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDisplay

      public B setDisplay(Display display)
      The GdkDisplay for the GtkATContext.
      Parameters:
      display - the value for the display property
      Returns:
      the Builder instance is returned, to allow method chaining
    • onStateChange

      public B onStateChange(ATContext.StateChangeCallback handler)
      Emitted when the attributes of the accessible for the GtkATContext instance change.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      See Also: