Package org.gnome.webkit.wpe
Class UserMessage.Builder<B extends UserMessage.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.gnome.webkit.wpe.UserMessage.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
UserMessage
public static class UserMessage.Builder<B extends UserMessage.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 theUserMessage
object.setFdList
(UnixFDList fdList) The UNIX file descriptors of the user message.The name of the user message.setParameters
(Variant parameters) The parameters of the user message as aGVariant
, ornull
if the message doesn't include parameters.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 theUserMessage
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 toUserMessage
.- Overrides:
build
in classInitiallyUnowned.Builder<B extends UserMessage.Builder<B>>
- Returns:
- a new instance of
UserMessage
with the properties that were set in the Builder object. - Throws:
UnsupportedPlatformException
- when run on an unsupported platform
-
setFdList
The UNIX file descriptors of the user message.- Parameters:
fdList
- the value for thefd-list
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setName
-
setParameters
The parameters of the user message as aGVariant
, ornull
if the message doesn't include parameters. Note that only complete types are allowed.- Parameters:
parameters
- the value for theparameters
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-