Package org.gnome.gio
Class PropertyAction.Builder<B extends PropertyAction.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.PropertyAction.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
Action.Builder<B>,BuilderInterface
- Enclosing class:
PropertyAction
public static class PropertyAction.Builder<B extends PropertyAction.Builder<B>>
extends GObject.Builder<B>
implements Action.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building thePropertyActionobject.setInvertBoolean(boolean invertBoolean) Iftrue, the state of the action will be the negation of the property value, provided the property is boolean.The name of the action.The object to wrap a property on.setPropertyName(String propertyName) The name of the property to wrap on the object.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.javagi.gobject.BuilderInterface
addBuilderProperty, connect, connect, getArena
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building thePropertyActionobject. 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 toPropertyAction.- Overrides:
buildin classGObject.Builder<B extends PropertyAction.Builder<B>>- Returns:
- a new instance of
PropertyActionwith the properties that were set in the Builder object.
-
setInvertBoolean
Iftrue, the state of the action will be the negation of the property value, provided the property is boolean.- Parameters:
invertBoolean- the value for theinvert-booleanproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.46
-
setName
-
setObject
-
setPropertyName
The name of the property to wrap on the object.The property must exist on the passed-in object and it must be readable and writable (and not construct-only).
- Parameters:
propertyName- the value for theproperty-nameproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.38
-