Package org.gnome.secret
Class Collection.Builder<B extends Collection.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.DBusProxy.Builder<B>
org.gnome.secret.Collection.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Collection
public static class Collection.Builder<B extends Collection.Builder<B>>
extends DBusProxy.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theCollectionobject.setCreated(long created) The date and time (in seconds since the UNIX epoch) that this collection was created.setFlags(Set<CollectionFlags> flags) A set of flags describing which parts of the secret collection have been initialized.setFlags(CollectionFlags... flags) A set of flags describing which parts of the secret collection have been initialized.The human readable label for the collection.setModified(long modified) The date and time (in seconds since the UNIX epoch) that this collection was last modified.setService(Service service) TheServiceobject that this collection is associated with and uses to interact with the actual D-Bus Secret Service.Methods inherited from class org.gnome.gio.DBusProxy.Builder
onGPropertiesChanged, onGSignal, setGBusType, setGConnection, setGDefaultTimeout, setGFlags, setGFlags, setGInterfaceInfo, setGInterfaceName, setGName, setGObjectPathMethods 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 theCollectionobject. 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 toCollection.- Overrides:
buildin classDBusProxy.Builder<B extends Collection.Builder<B>>- Returns:
- a new instance of
Collectionwith the properties that were set in the Builder object.
-
setCreated
The date and time (in seconds since the UNIX epoch) that this collection was created.- Parameters:
created- the value for thecreatedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setFlags
A set of flags describing which parts of the secret collection have been initialized.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setLabel
The human readable label for the collection.Setting this property will result in the label of the collection being set asynchronously. To properly track the changing of the label use the
Collection.setLabel(java.lang.String, org.gnome.gio.Cancellable, org.gnome.gio.AsyncReadyCallback)function.- Parameters:
label- the value for thelabelproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setModified
The date and time (in seconds since the UNIX epoch) that this collection was last modified.- Parameters:
modified- the value for themodifiedproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setService
-
setFlags
A set of flags describing which parts of the secret collection have been initialized.- Parameters:
flags- the value for theflagsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-