Package java.awt.dnd

Interface Summary
Autoscroll sample code for java.awt.dnd.Autoscroll definition code for java.awt.dnd.Autoscroll During DnD operations it is possible that a user may wish to drop the subject of the operation on a region of a scrollable GUI control that is not currently visible to the user.
DragGestureListener sample code for java.awt.dnd.DragGestureListener definition code for java.awt.dnd.DragGestureListener This interface is sourced from a DragGestureRecognizer and is invoked when an object of that (sub)class detects a drag initiating gesture.
DragSourceListener sample code for java.awt.dnd.DragSourceListener definition code for java.awt.dnd.DragSourceListener The DragSourceListener 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.
DragSourceMotionListener sample code for java.awt.dnd.DragSourceMotionListener definition code for java.awt.dnd.DragSourceMotionListener A listener interface for receiving mouse motion events during a drag operation.
DropTargetListener sample code for java.awt.dnd.DropTargetListener definition code for java.awt.dnd.DropTargetListener The DropTargetListener interface is the callback interface used by the DropTarget class to provide notification of DnD operations that involve the subject DropTarget.
 

Class Summary
DnDConstants sample code for java.awt.dnd.DnDConstants definition code for java.awt.dnd.DnDConstants This class contains constant values representing the type of action(s) to be performed by a Drag and Drop operation.
DragGestureEvent sample code for java.awt.dnd.DragGestureEvent definition code for java.awt.dnd.DragGestureEvent A DragGestureEvent is passed to DragGestureListener's dragGestureRecognized() method when a particular DragGestureRecognizer detects that a platform dependent drag initiating gesture has occurred on the Component that it is tracking.
DragGestureRecognizer sample code for java.awt.dnd.DragGestureRecognizer definition code for java.awt.dnd.DragGestureRecognizer The DragGestureRecognizer is an abstract base class for the specification of a platform-dependent listener that can be associated with a particular Component in order to identify platform-dependent drag initiating gestures.
DragSource sample code for java.awt.dnd.DragSource definition code for java.awt.dnd.DragSource The DragSource 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.
DragSourceAdapter sample code for java.awt.dnd.DragSourceAdapter definition code for java.awt.dnd.DragSourceAdapter An abstract adapter class for receiving drag source events.
DragSourceContext sample code for java.awt.dnd.DragSourceContext definition code for java.awt.dnd.DragSourceContext The DragSourceContext class is responsible for managing the initiator side of the Drag and Drop protocol.
DragSourceDragEvent sample code for java.awt.dnd.DragSourceDragEvent definition code for java.awt.dnd.DragSourceDragEvent The DragSourceDragEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to the DragSourceListener registered with that DragSourceContext and with its associated DragSource.
DragSourceDropEvent sample code for java.awt.dnd.DragSourceDropEvent definition code for java.awt.dnd.DragSourceDropEvent The DragSourceDropEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to the dragDropEnd method of DragSourceListeners registered with that DragSourceContext and with its associated DragSource.
DragSourceEvent sample code for java.awt.dnd.DragSourceEvent definition code for java.awt.dnd.DragSourceEvent This class is the base class for DragSourceDragEvent and DragSourceDropEvent.
DropTarget sample code for java.awt.dnd.DropTarget definition code for java.awt.dnd.DropTarget The DropTarget is associated with a Component when that Component wishes to accept drops during Drag and Drop operations.
DropTarget.DropTargetAutoScroller sample code for java.awt.dnd.DropTarget.DropTargetAutoScroller definition code for java.awt.dnd.DropTarget.DropTargetAutoScroller this protected nested class implements autoscrolling
DropTargetAdapter sample code for java.awt.dnd.DropTargetAdapter definition code for java.awt.dnd.DropTargetAdapter An abstract adapter class for receiving drop target events.
DropTargetContext sample code for java.awt.dnd.DropTargetContext definition code for java.awt.dnd.DropTargetContext A DropTargetContext is created whenever the logical cursor associated with a Drag and Drop operation coincides with the visible geometry of a Component associated with a DropTarget.
DropTargetDragEvent sample code for java.awt.dnd.DropTargetDragEvent definition code for java.awt.dnd.DropTargetDragEvent The DropTargetDragEvent is delivered to a DropTargetListener via its dragEnter() and dragOver() methods.
DropTargetDropEvent sample code for java.awt.dnd.DropTargetDropEvent definition code for java.awt.dnd.DropTargetDropEvent The DropTargetDropEvent is delivered via the DropTargetListener drop() method.
DropTargetEvent sample code for java.awt.dnd.DropTargetEvent definition code for java.awt.dnd.DropTargetEvent The DropTargetEvent is the base class for both the DropTargetDragEvent and the DropTargetDropEvent.
MouseDragGestureRecognizer sample code for java.awt.dnd.MouseDragGestureRecognizer definition code for java.awt.dnd.MouseDragGestureRecognizer This abstract subclass of DragGestureRecognizer defines a DragGestureRecognizer for mouse-based gestures.
 

Exception Summary
InvalidDnDOperationException sample code for java.awt.dnd.InvalidDnDOperationException definition code for java.awt.dnd.InvalidDnDOperationException This exception is thrown by various methods in the java.awt.dnd package.