Package org.gnome.gobject
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theSignalGroupobject.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 ofselfis set to a newGObject.The target instance used when connecting signals.setTargetType(Type targetType) TheGTypeof the target property.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 theSignalGroupobject. 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:
buildin classGObject.Builder<B extends SignalGroup.Builder<B>>- Returns:
- a new instance of
SignalGroupwith 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 ontargetexcept it will not emit whenGSignalGroup:target isnulland also allows for receiving theGObjectwithout a data-race.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.72
- See Also:
-
onUnbind
This signal is emitted when the target instance ofselfis set to a newGObject.This signal will only be emitted if the previous target of
selfis non-null.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.72
- See Also:
-