Package docking.dnd

Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface java.awt.dnd.DragGestureListener
        Parameters:
        e - event describing the gesture that has just occurred