Package org.gnome.gtk
Class EventController.Builder<B extends EventController.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.EventController.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
DropControllerMotion.Builder
,DropTarget.Builder
,DropTargetAsync.Builder
,EventControllerFocus.Builder
,EventControllerKey.Builder
,EventControllerLegacy.Builder
,EventControllerMotion.Builder
,EventControllerScroll.Builder
,Gesture.Builder
,PadController.Builder
,ShortcutController.Builder
- Enclosing class:
EventController
public static class EventController.Builder<B extends EventController.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theEventController
object.The name for this controller, typically used for debugging purposes.setPropagationLimit
(PropagationLimit propagationLimit) The limit for which events this controller will handle.setPropagationPhase
(PropagationPhase propagationPhase) The propagation phase at which this controller will handle events.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 theEventController
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 toEventController
.- Overrides:
build
in classGObject.Builder<B extends EventController.Builder<B>>
- Returns:
- a new instance of
EventController
with the properties that were set in the Builder object.
-
setName
-
setPropagationLimit
The limit for which events this controller will handle.- Parameters:
propagationLimit
- the value for thepropagation-limit
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPropagationPhase
The propagation phase at which this controller will handle events.- Parameters:
propagationPhase
- the value for thepropagation-phase
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-