Package org.gnome.gdk
Class Drop.Builder<B extends Drop.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDrop
object.setActions
(Set<DragAction> actions) The possible actions for this dropsetActions
(DragAction... actions) The possible actions for this dropTheGdkDevice
performing the dropTheGdkDrag
that initiated this dropsetFormats
(ContentFormats formats) The possible formats that the drop can provide its data in.setSurface
(Surface surface) TheGdkSurface
the drop happens onMethods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theDrop
object. 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:
build
in classGObject.Builder<B extends Drop.Builder<B>>
- Returns:
- a new instance of
Drop
with the properties that were set in the Builder object.
-
setActions
The possible actions for this drop- Parameters:
actions
- the value for theactions
property- Returns:
- the
Builder
instance 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 theformats
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSurface
-
setActions
The possible actions for this drop- Parameters:
actions
- the value for theactions
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-