Package org.gnome.gtk
Class EventControllerFocus.Builder<B extends EventControllerFocus.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.EventController.Builder<B>
org.gnome.gtk.EventControllerFocus.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
EventControllerFocus
public static class EventControllerFocus.Builder<B extends EventControllerFocus.Builder<B>>
extends EventController.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theEventControllerFocusobject.Emitted whenever the focus enters into the widget or one of its descendents.Emitted whenever the focus leaves the widget hierarchy that is rooted at the widget that the controller is attached to.Methods inherited from class org.gnome.gtk.EventController.Builder
setName, setPropagationLimit, setPropagationPhaseMethods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theEventControllerFocusobject. 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 toEventControllerFocus.- Overrides:
buildin classEventController.Builder<B extends EventControllerFocus.Builder<B>>- Returns:
- a new instance of
EventControllerFocuswith the properties that were set in the Builder object.
-
onEnter
Emitted whenever the focus enters into the widget or one of its descendents.Note that this means you may not get an ::enter signal even though the widget becomes the focus location, in certain cases (such as when the focus moves from a descendent of the widget to the widget itself). If you are interested in these cases, you can monitor the
Gtk.EventControllerFocus:is-focusproperty for changes.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-
onLeave
Emitted whenever the focus leaves the widget hierarchy that is rooted at the widget that the controller is attached to.Note that this means you may not get a ::leave signal even though the focus moves away from the widget, in certain cases (such as when the focus moves from the widget to a descendent). If you are interested in these cases, you can monitor the
Gtk.EventControllerFocus:is-focusproperty for changes.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - See Also:
-