Package docking.dnd
Class DragGestureAdapter
- java.lang.Object
-
- docking.dnd.DragGestureAdapter
-
- All Implemented Interfaces:
java.awt.dnd.DragGestureListener
,java.util.EventListener
public class DragGestureAdapter extends java.lang.Object implements java.awt.dnd.DragGestureListener
This class receives notification when the user intitiates a drag and drop operation; it is responsible for getting the Transferable and telling the DragSource to start the drag.
-
-
Constructor Summary
Constructors Constructor Description DragGestureAdapter(Draggable dragComponent)
Construct a new DragGestureAdapter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dragGestureRecognized(java.awt.dnd.DragGestureEvent e)
A DragGestureRecognizer has detected a platform-dependent Drag and Drop action initiating gesture and is notifying this Listener in order for it to initiate the action for the user.
-
-
-
Constructor Detail
-
DragGestureAdapter
public DragGestureAdapter(Draggable dragComponent)
Construct a new DragGestureAdapter- Parameters:
dragComponent
- Component that can support drag operations
-
-
Method Detail
-
dragGestureRecognized
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent e)
A DragGestureRecognizer has detected a platform-dependent Drag and Drop action initiating gesture and is notifying this Listener in order for it to initiate the action for the user.The DragGestureRecognizer hides the platform-specific events that initate a drag and drop operation.
- Specified by:
dragGestureRecognized
in interfacejava.awt.dnd.DragGestureListener
- Parameters:
e
- event describing the gesture that has just occurred
-
-