Package org.gnome.gobject
Class Binding.Builder<B extends Binding.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.Binding.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Binding
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theBindingobject.setFlags(Set<BindingFlags> flags) Flags to be used to control theGBindingsetFlags(BindingFlags... flags) Flags to be used to control theGBindingTheGObjectthat should be used as the source of the bindingsetSourceProperty(String sourceProperty) The name of the property ofGBinding:source that should be used as the source of the binding.TheGObjectthat should be used as the target of the bindingsetTargetProperty(String targetProperty) The name of the property ofGBinding:target that should be used as the target of the binding.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 theBindingobject. 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 toBinding.- Overrides:
buildin classGObject.Builder<B extends Binding.Builder<B>>- Returns:
- a new instance of
Bindingwith the properties that were set in the Builder object.
-
setFlags
Flags to be used to control theGBinding- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.26
-
setSource
-
setSourceProperty
The name of the property ofGBinding:source that should be used as the source of the binding.This should be in [canonical form][canonical-parameter-names] to get the best performance.
- Parameters:
sourceProperty- the value for thesource-propertyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.26
-
setTarget
-
setTargetProperty
The name of the property ofGBinding:target that should be used as the target of the binding.This should be in [canonical form][canonical-parameter-names] to get the best performance.
- Parameters:
targetProperty- the value for thetarget-propertyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.26
-
setFlags
Flags to be used to control theGBinding- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.26
-