Package org.gnome.gio
Class DBusObjectManagerClient.Builder<B extends DBusObjectManagerClient.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.DBusObjectManagerClient.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
DBusObjectManagerClient
public static class DBusObjectManagerClient.Builder<B extends DBusObjectManagerClient.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theDBusObjectManagerClientobject.onInterfaceProxyPropertiesChanged(DBusObjectManagerClient.InterfaceProxyPropertiesChangedCallback handler) Emitted when one or more D-Bus properties on proxy changes.Emitted when a D-Bus signal is received oninterfaceProxy.setBusType(BusType busType) If this property is notBusType.NONE, thenGDBusObjectManagerClient:connection must benulland will be set to theGDBusConnectionobtained by calling g_bus_get() with the value of this property.setConnection(DBusConnection connection) TheGDBusConnectionto use.setFlags(Set<DBusObjectManagerClientFlags> flags) Flags from theGDBusObjectManagerClientFlagsenumeration.setFlags(DBusObjectManagerClientFlags... flags) Flags from theGDBusObjectManagerClientFlagsenumeration.setGetProxyTypeDestroyNotify(MemorySegment getProxyTypeDestroyNotify) AGDestroyNotifyfor thegpointeruser_data inGDBusObjectManagerClient:get-proxy-type-user-data.setGetProxyTypeFunc(MemorySegment getProxyTypeFunc) TheGDBusProxyTypeFuncto use when determining whatGTypeto use for interface proxies ornull.setGetProxyTypeUserData(MemorySegment getProxyTypeUserData) Thegpointeruser_data to pass toGDBusObjectManagerClient:get-proxy-type-func.The well-known name or unique name that the manager is for.setObjectPath(String objectPath) The object path the manager is for.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 theDBusObjectManagerClientobject. 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 toDBusObjectManagerClient.- Overrides:
buildin classGObject.Builder<B extends DBusObjectManagerClient.Builder<B>>- Returns:
- a new instance of
DBusObjectManagerClientwith the properties that were set in the Builder object.
-
setBusType
If this property is notBusType.NONE, thenGDBusObjectManagerClient:connection must benulland will be set to theGDBusConnectionobtained by calling g_bus_get() with the value of this property.- Parameters:
busType- the value for thebus-typeproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
setConnection
TheGDBusConnectionto use.- Parameters:
connection- the value for theconnectionproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
setFlags
Flags from theGDBusObjectManagerClientFlagsenumeration.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
setGetProxyTypeDestroyNotify
AGDestroyNotifyfor thegpointeruser_data inGDBusObjectManagerClient:get-proxy-type-user-data.- Parameters:
getProxyTypeDestroyNotify- the value for theget-proxy-type-destroy-notifyproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
setGetProxyTypeFunc
TheGDBusProxyTypeFuncto use when determining whatGTypeto use for interface proxies ornull.- Parameters:
getProxyTypeFunc- the value for theget-proxy-type-funcproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
setGetProxyTypeUserData
Thegpointeruser_data to pass toGDBusObjectManagerClient:get-proxy-type-func.- Parameters:
getProxyTypeUserData- the value for theget-proxy-type-user-dataproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
setName
-
setObjectPath
-
setFlags
Flags from theGDBusObjectManagerClientFlagsenumeration.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
-
onInterfaceProxyPropertiesChanged
public B onInterfaceProxyPropertiesChanged(DBusObjectManagerClient.InterfaceProxyPropertiesChangedCallback handler) Emitted when one or more D-Bus properties on proxy changes. The local cache has already been updated when this signal fires. Note that bothchangedPropertiesandinvalidatedPropertiesare guaranteed to never benull(either may be empty though).This signal exists purely as a convenience to avoid having to connect signals to all interface proxies managed by
manager.This signal is emitted in the thread-default main context (see
MainContext.pushThreadDefault()) thatmanagerwas constructed in.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
- See Also:
-
onInterfaceProxySignal
Emitted when a D-Bus signal is received oninterfaceProxy.This signal exists purely as a convenience to avoid having to connect signals to all interface proxies managed by
manager.This signal is emitted in the thread-default main context (see
MainContext.pushThreadDefault()) thatmanagerwas constructed in.- Parameters:
handler- the signal handler- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.30
- See Also:
-