Package org.gnome.gtk
Class ATContext.Builder<B extends ATContext.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.ATContext.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
ATContext
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theATContext
object.Emitted when the attributes of the accessible for theGtkATContext
instance change.setAccessible
(Accessible accessible) TheGtkAccessible
that created theGtkATContext
instance.setAccessibleRole
(AccessibleRole accessibleRole) The accessible role used by the AT context.setDisplay
(Display display) TheGdkDisplay
for theGtkATContext
.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theATContext
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toATContext
.- Overrides:
build
in classGObject.Builder<B extends ATContext.Builder<B>>
- Returns:
- a new instance of
ATContext
with the properties that were set in the Builder object.
-
setAccessible
TheGtkAccessible
that created theGtkATContext
instance.- Parameters:
accessible
- the value for theaccessible
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setAccessibleRole
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 theaccessible-role
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDisplay
-
onStateChange
Emitted when the attributes of the accessible for theGtkATContext
instance change.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-