Package org.freedesktop.gstreamer.gst
Class GstObject.Builder<B extends GstObject.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.freedesktop.gstreamer.gst.GstObject.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Direct Known Subclasses:
Allocator.Builder
,AudioRingBuffer.Builder
,BufferPool.Builder
,Bus.Builder
,Clock.Builder
,CollectPads.Builder
,ControlBinding.Builder
,ControlSource.Builder
,Device.Builder
,DeviceMonitor.Builder
,DeviceProvider.Builder
,Element.Builder
,Pad.Builder
,PadTemplate.Builder
,Plugin.Builder
,PluginFeature.Builder
,Registry.Builder
,Stream.Builder
,StreamCollection.Builder
,Task.Builder
,TaskPool.Builder
,Tracer.Builder
,TracerRecord.Builder
- Enclosing class:
GstObject
public static class GstObject.Builder<B extends GstObject.Builder<B>>
extends InitiallyUnowned.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theGstObject
object.onDeepNotify
(@Nullable String detail, GstObject.DeepNotifyCallback handler) The deep notify signal is used to be notified of property changes.The parent of the object.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 theGstObject
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 toGstObject
.- Overrides:
build
in classInitiallyUnowned.Builder<B extends GstObject.Builder<B>>
- Returns:
- a new instance of
GstObject
with the properties that were set in the Builder object.
-
setName
-
setParent
The parent of the object. Please note, that when changing the 'parent' property, we don't emitGObject
::notify andGstObject
::deep-notify signals due to locking issues. In some cases one can useGstBin
::element-added orGstBin
::element-removed signals on the parent to achieve a similar effect.- Parameters:
parent
- the value for theparent
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onDeepNotify
The deep notify signal is used to be notified of property changes. It is typically attached to the toplevel bin to receive notifications from all the elements contained in that bin.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-