Package org.gnome.gtk
Class MediaFile.Builder<B extends MediaFile.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gtk.MediaStream.Builder<B>
org.gnome.gtk.MediaFile.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
MediaFile
public static class MediaFile.Builder<B extends MediaFile.Builder<B>>
extends MediaStream.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theMediaFile
object.The file being played back ornull
if not playing a file.setInputStream
(InputStream inputStream) The stream being played back ornull
if not playing a stream.Methods inherited from class org.gnome.gtk.MediaStream.Builder
setLoop, setMuted, setPlaying, setPrepared, setVolume
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 theMediaFile
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 toMediaFile
.- Overrides:
build
in classMediaStream.Builder<B extends MediaFile.Builder<B>>
- Returns:
- a new instance of
MediaFile
with the properties that were set in the Builder object.
-
setFile
-
setInputStream
The stream being played back ornull
if not playing a stream.This is
null
when playing a file.- Parameters:
inputStream
- the value for theinput-stream
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-