Package org.gnome.gtk
Class EventController.Builder<B extends EventController.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theEventControllerobject.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
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 theEventControllerobject. 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:
buildin classGObject.Builder<B extends EventController.Builder<B>>- Returns:
- a new instance of
EventControllerwith 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-limitproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setPropagationPhase
The propagation phase at which this controller will handle events.- Parameters:
propagationPhase- the value for thepropagation-phaseproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-