Package org.gnome.gdk
Class Drag.Builder<B extends Drag.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gdk.Drag.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
Drag
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDrag
object.onCancel
(Drag.CancelCallback handler) Emitted when the drag operation is cancelled.onDndFinished
(Drag.DndFinishedCallback handler) Emitted when the destination side has finished reading all data.Emitted when the drop operation is performed on an accepting client.setActions
(Set<DragAction> actions) The possible actions of this drag.setActions
(DragAction... actions) The possible actions of this drag.setContent
(ContentProvider content) TheGdkContentProvider
.TheGdkDevice
that is performing the drag.setFormats
(ContentFormats formats) The possible formats that the drag can provide its data in.setSelectedAction
(Set<DragAction> selectedAction) The currently selected action of the drag.setSelectedAction
(DragAction... selectedAction) The currently selected action of the drag.setSurface
(Surface surface) The surface where the drag originates.Methods 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 theDrag
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 toDrag
.- Overrides:
build
in classGObject.Builder<B extends Drag.Builder<B>>
- Returns:
- a new instance of
Drag
with the properties that were set in the Builder object.
-
setActions
The possible actions of this drag.- Parameters:
actions
- the value for theactions
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setContent
TheGdkContentProvider
.- Parameters:
content
- the value for thecontent
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDevice
-
setFormats
The possible formats that the drag can provide its data in.- Parameters:
formats
- the value for theformats
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSelectedAction
The currently selected action of the drag.- Parameters:
selectedAction
- the value for theselected-action
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSurface
-
setActions
The possible actions of this drag.- Parameters:
actions
- the value for theactions
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setSelectedAction
The currently selected action of the drag.- Parameters:
selectedAction
- the value for theselected-action
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onCancel
Emitted when the drag operation is cancelled.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDndFinished
Emitted when the destination side has finished reading all data.The drag object can now free all miscellaneous data.
- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onDropPerformed
Emitted when the drop operation is performed on an accepting client.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-