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 Details

    • Builder

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

    • build

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

      public B setName(String name)
      The name for this controller, typically used for debugging purposes.
      Parameters:
      name - the value for the name property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPropagationLimit

      public B setPropagationLimit(PropagationLimit propagationLimit)
      The limit for which events this controller will handle.
      Parameters:
      propagationLimit - the value for the propagation-limit property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setPropagationPhase

      public B setPropagationPhase(PropagationPhase propagationPhase)
      The propagation phase at which this controller will handle events.
      Parameters:
      propagationPhase - the value for the propagation-phase property
      Returns:
      the Builder instance is returned, to allow method chaining