Class SignalGroup.Builder<B extends SignalGroup.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.SignalGroup.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
SignalGroup

public static class SignalGroup.Builder<B extends SignalGroup.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
2.72
  • Constructor Details

    • Builder

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

    • build

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

      public B setTarget(GObject target)
      The target instance used when connecting signals.
      Parameters:
      target - the value for the target property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.72
    • setTargetType

      public B setTargetType(Type targetType)
      The GType of the target property.
      Parameters:
      targetType - the value for the target-type property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.72
    • onBind

      public B onBind(SignalGroup.BindCallback handler)
      This signal is emitted when GSignalGroup:target is set to a new value other than null. It is similar to GObject::notify on target except it will not emit when GSignalGroup:target is null and also allows for receiving the GObject without a data-race.
      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.72
      See Also:
    • onUnbind

      public B onUnbind(SignalGroup.UnbindCallback handler)

      This signal is emitted when the target instance of self is set to a new GObject.

      This signal will only be emitted if the previous target of self is non-null.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.72
      See Also: