Package org.gnome.gobject
Class SignalGroup.Builder<B extends SignalGroup.Builder<B>>
java.lang.Object
io.github.jwharm.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.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theSignalGroup
object.onBind
(SignalGroup.BindCallback handler) This signal is emitted whenGSignalGroup
:target is set to a new value other thannull
.onUnbind
(SignalGroup.UnbindCallback handler) This signal is emitted when the target instance ofself
is set to a newGObject
.The target instance used when connecting signals.setTargetType
(Type targetType) TheGType
of the target property.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 theSignalGroup
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 toSignalGroup
.- Overrides:
build
in classGObject.Builder<B extends SignalGroup.Builder<B>>
- Returns:
- a new instance of
SignalGroup
with the properties that were set in the Builder object.
-
setTarget
-
setTargetType
-
onBind
This signal is emitted whenGSignalGroup
:target is set to a new value other thannull
. It is similar toGObject
::notify ontarget
except it will not emit whenGSignalGroup
:target isnull
and also allows for receiving theGObject
without a data-race.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onUnbind
This signal is emitted when the target instance ofself
is set to a newGObject
.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 - See Also:
-