Uses of Interface
java.awt.dnd.DragSourceListener
| Package | Description |
|---|---|
| java.awt.dnd |
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
Classes in java.awt.dnd that implement DragSourceListener Modifier and Type Class Description classDragSourceAdapterAn abstract adapter class for receiving drag source events.classDragSourceContextTheDragSourceContextclass is responsible for managing the initiator side of the Drag and Drop protocol.Methods in java.awt.dnd that return DragSourceListener Modifier and Type Method Description DragSourceListener[]DragSource. getDragSourceListeners()Gets all theDragSourceListeners registered with thisDragSource.Methods in java.awt.dnd with parameters of type DragSourceListener Modifier and Type Method Description voidDragSource. addDragSourceListener(DragSourceListener dsl)Adds the specifiedDragSourceListenerto thisDragSourceto receive drag source events during drag operations initiated with thisDragSource.voidDragSourceContext. addDragSourceListener(DragSourceListener dsl)Add aDragSourceListenerto thisDragSourceContextif one has not already been added.protected DragSourceContextDragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)Creates theDragSourceContextto handle the current drag operation.voidDragSource. removeDragSourceListener(DragSourceListener dsl)Removes the specifiedDragSourceListenerfrom thisDragSource.voidDragSourceContext. removeDragSourceListener(DragSourceListener dsl)Removes the specifiedDragSourceListenerfrom thisDragSourceContext.voidDragGestureEvent. startDrag(Cursor dragCursor, Transferable transferable, DragSourceListener dsl)Starts the drag given the initialCursorto display, theTransferableobject, and theDragSourceListenerto use.voidDragGestureEvent. startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl)Start the drag given the initialCursorto display, a dragImage, the offset of theImage, theTransferableobject, and theDragSourceListenerto use.voidDragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl)Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theTransferablesubject data of the drag, and theDragSourceListener.voidDragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.voidDragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, the subject data of the drag, and theDragSourceListener.voidDragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.Constructors in java.awt.dnd with parameters of type DragSourceListener Constructor Description DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)Called fromDragSource, this constructor creates a newDragSourceContextgiven theDragSourceContextPeerfor this Drag, theDragGestureEventthat triggered the Drag, the initialCursorto use for the Drag, an (optional)Imageto display while the Drag is taking place, the offset of theImageorigin from the hotspot at the instant of the triggering event, theTransferablesubject data, and theDragSourceListenerto use during the Drag and Drop operation.