Package org.gnome.gdk
Class Drop.Builder<B extends Drop.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Drop.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Drop
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theDropobject.setActions(Set<DragAction> actions) The possible actions for this dropsetActions(DragAction... actions) The possible actions for this dropTheGdkDeviceperforming the dropTheGdkDragthat initiated this dropsetFormats(ContentFormats formats) The possible formats that the drop can provide its data in.setSurface(Surface surface) TheGdkSurfacethe drop happens onMethods 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 theDropobject. 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 toDrop.- Overrides:
buildin classGObject.Builder<B extends Drop.Builder<B>>- Returns:
- a new instance of
Dropwith the properties that were set in the Builder object.
-
setActions
The possible actions for this drop- Parameters:
actions- the value for theactionsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDevice
-
setDrag
-
setFormats
The possible formats that the drop can provide its data in.- Parameters:
formats- the value for theformatsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setSurface
-
setActions
The possible actions for this drop- Parameters:
actions- the value for theactionsproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-