Uses of Package
java.awt.dnd
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
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.
-
ClassDescriptionThe listener interface for receiving drag gesture events.The
DragGestureRecognizer
is an abstract base class for the specification of a platform-dependent listener that can be associated with a particularComponent
in order to identify platform-dependent drag initiating gestures.TheDragSource
is the entity responsible for the initiation of the Drag and Drop operation, and may be used in a number of scenarios: 1 default instance per JVM for the lifetime of that JVM.TheDropTarget
is associated with aComponent
when thatComponent
wishes to accept drops during Drag and Drop operations. -
ClassDescriptionA
DragGestureEvent
is passed toDragGestureListener
's dragGestureRecognized() method when a particularDragGestureRecognizer
detects that a platform dependent drag initiating gesture has occurred on theComponent
that it is tracking.The listener interface for receiving drag gesture events.TheDragGestureRecognizer
is an abstract base class for the specification of a platform-dependent listener that can be associated with a particularComponent
in order to identify platform-dependent drag initiating gestures.TheDragSource
is the entity responsible for the initiation of the Drag and Drop operation, and may be used in a number of scenarios: 1 default instance per JVM for the lifetime of that JVM.TheDragSourceContext
class is responsible for managing the initiator side of the Drag and Drop protocol.TheDragSourceDragEvent
is delivered from theDragSourceContextPeer
, via theDragSourceContext
, to theDragSourceListener
registered with thatDragSourceContext
and with its associatedDragSource
.TheDragSourceDropEvent
is delivered from theDragSourceContextPeer
, via theDragSourceContext
, to thedragDropEnd
method ofDragSourceListener
s registered with thatDragSourceContext
and with its associatedDragSource
.This class is the base class forDragSourceDragEvent
andDragSourceDropEvent
.TheDragSourceListener
defines the event interface for originators of Drag and Drop operations to track the state of the user's gesture, and to provide appropriate "drag over" feedback to the user throughout the Drag and Drop operation.A listener interface for receiving mouse motion events during a drag operation.TheDropTarget
is associated with aComponent
when thatComponent
wishes to accept drops during Drag and Drop operations.this protected nested class implements autoscrollingADropTargetContext
is created whenever the logical cursor associated with a Drag and Drop operation coincides with the visible geometry of aComponent
associated with aDropTarget
.TheDropTargetDragEvent
is delivered to aDropTargetListener
via its dragEnter() and dragOver() methods.TheDropTargetDropEvent
is delivered via theDropTargetListener
drop() method.TheDropTargetEvent
is the base class for both theDropTargetDragEvent
and theDropTargetDropEvent
.TheDropTargetListener
interface is the callback interface used by theDropTarget
class to provide notification of DnD operations that involve the subjectDropTarget
.This exception is thrown by various methods in the java.awt.dnd package.