Uses of Interface
java.awt.dnd.DragSourceListener
Package
Description
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
-
Uses of DragSourceListener in java.awt.dnd
Modifier and TypeClassDescriptionclass
An abstract adapter class for receiving drag source events.class
TheDragSourceContext
class is responsible for managing the initiator side of the Drag and Drop protocol.Modifier and TypeMethodDescriptionDragSource.getDragSourceListeners()
Gets all theDragSourceListener
s registered with thisDragSource
.Modifier and TypeMethodDescriptionvoid
DragSource.addDragSourceListener
(DragSourceListener dsl) Adds the specifiedDragSourceListener
to thisDragSource
to receive drag source events during drag operations initiated with thisDragSource
.void
DragSourceContext.addDragSourceListener
(DragSourceListener dsl) Add aDragSourceListener
to thisDragSourceContext
if one has not already been added.protected DragSourceContext
DragSource.createDragSourceContext
(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl) Creates theDragSourceContext
to handle the current drag operation.void
DragSource.removeDragSourceListener
(DragSourceListener dsl) Removes the specifiedDragSourceListener
from thisDragSource
.void
DragSourceContext.removeDragSourceListener
(DragSourceListener dsl) Removes the specifiedDragSourceListener
from thisDragSourceContext
.void
DragGestureEvent.startDrag
(Cursor dragCursor, Transferable transferable, DragSourceListener dsl) Starts the drag given the initialCursor
to display, theTransferable
object, and theDragSourceListener
to use.void
DragGestureEvent.startDrag
(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl) Start the drag given the initialCursor
to display, a dragImage
, the offset of theImage
, theTransferable
object, and theDragSourceListener
to use.void
DragSource.startDrag
(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theTransferable
subject data of the drag, and theDragSourceListener
.void
DragSource.startDrag
(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theTransferable
subject data of the drag, theDragSourceListener
, and theFlavorMap
.void
DragSource.startDrag
(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theImage
to drag, the offset of theImage
origin from the hotspot of theCursor
at the instant of the trigger, the subject data of the drag, and theDragSourceListener
.void
DragSource.startDrag
(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theImage
to drag, the offset of theImage
origin from the hotspot of theCursor
at the instant of the trigger, theTransferable
subject data of the drag, theDragSourceListener
, and theFlavorMap
.ModifierConstructorDescriptionDragSourceContext
(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl) Called fromDragSource
, this constructor creates a newDragSourceContext
given theDragSourceContextPeer
for this Drag, theDragGestureEvent
that triggered the Drag, the initialCursor
to use for the Drag, an (optional)Image
to display while the Drag is taking place, the offset of theImage
origin from the hotspot at the instant of the triggering event, theTransferable
subject data, and theDragSourceListener
to use during the Drag and Drop operation.