Class UserMessage.Builder<B extends UserMessage.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gobject.InitiallyUnowned.Builder<B>
org.webkitgtk.webprocessextension.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theUserMessageobject.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, ornullif the message doesn't include parameters.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 theUserMessageobject. 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:
buildin classInitiallyUnowned.Builder<B extends UserMessage.Builder<B>>- Returns:
- a new instance of
UserMessagewith the properties that were set in the Builder object.
-
setFdList
The UNIX file descriptors of the user message.- Parameters:
fdList- the value for thefd-listproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
-
setName
-
setParameters
The parameters of the user message as aGVariant, ornullif the message doesn't include parameters. Note that only complete types are allowed.- Parameters:
parameters- the value for theparametersproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.28
-