Java Platform 1.2

Package java.awt.dnd

Provides interfaces and classes for supporting drag-and-drop operations.

See:
          Description

Interface Summary
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 This interface is sourced from a DragGestureRecognizer and is invoked when an object of that (sub)class detects a Drag and Drop initiating gesture.
DragSourceListener The DragSourceListener defines the event interface for originators of Drag and Drop operations to track the state of the users gesture to provide the appropriate feedback to the user.
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  
DragGestureEvent A DragGestureEvent is passed to a DragGestureListener via its gestureRecognized() method when a particular DragGestureRecognizer detects a platform dependent Drag and Drop action initiating gesture has occurred on the Component it is tracking.
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 and drop action initiating gestures.
DragSource The DragSource class is a small class responsible for originating a Drag and Drop gesture.
DragSourceContext The DragSourceContext class is responsible for managing the initiator side of the Drag and Drop protocol.
DragSourceDragEvent The DragSourceDragEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to the currently registered DragSourceListener.
DragSourceDropEvent The DragSourceDropEvent is delivered from the DragSourceContextPeer, via the DragSourceContext, to its currently registered DragSourceListener.
DragSourceEvent base class for DragSourceDragEvent and DragSourceDropEvent
DropTarget The DropTarget is associated with a Component, when that Component wishes to accept Drops during Drag and Drop operations.
DropTarget.DropTargetAutoScroller this protected nested class implements autoscrolling
DropTargetContext A DropTargetContext is created whenever the logical cursor associated with a Drag and Drop operation coincides with the visibel geometry of a Component, with an associated DropTarget.
DropTargetDragEvent The DropTargetDragEvent is delivered to a DropTargetListener via its dragEnter() and dragOver().
DropTargetDropEvent The DropTargetDropEvent is delivered via the DropTargetListener drop() method.
DropTargetEvent The DropTargetEvent is the base class for both the DropTargetDragEvent and The DropTargetDropEvent.
MouseDragGestureRecognizer This abstract subclass of DragGestureRecognizer defines a DragGestureRecognizer for Mouse based gestures.
 

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

Package java.awt.dnd Description

Provides interfaces and classes for supporting drag-and-drop operations. It defines classes for the drag-source and the drop-target, as well as events for transferring the data being dragged, and giving visual feedback to the user performing the operation.

Since:
JDK1.2

Java Platform 1.2

Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.