Class DefaultTransferHandler.FreeColDragHandler

  • All Implemented Interfaces:
    java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.util.EventListener
    Enclosing class:
    DefaultTransferHandler

    private static class DefaultTransferHandler.FreeColDragHandler
    extends java.lang.Object
    implements java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener
    This is the default drag handler for drag and drop operations that use the TransferHandler.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean scrolls  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FreeColDragHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dragDropEnd​(java.awt.dnd.DragSourceDropEvent dsde)
      void dragEnter​(java.awt.dnd.DragSourceDragEvent dsde)
      void dragExit​(java.awt.dnd.DragSourceEvent dsde)
      void dragGestureRecognized​(java.awt.dnd.DragGestureEvent dge)
      void dragOver​(java.awt.dnd.DragSourceDragEvent dsde)
      void dropActionChanged​(java.awt.dnd.DragSourceDragEvent dsde)
      private java.awt.Cursor getCursor​(javax.swing.JComponent c)
      Get a suitable cursor for the given component.
      private void updatePartialChosen​(javax.swing.JComponent comp, boolean partial)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scrolls

        private boolean scrolls
    • Constructor Detail

      • FreeColDragHandler

        private FreeColDragHandler()
    • Method Detail

      • updatePartialChosen

        private void updatePartialChosen​(javax.swing.JComponent comp,
                                         boolean partial)
      • getCursor

        private java.awt.Cursor getCursor​(javax.swing.JComponent c)
        Get a suitable cursor for the given component.
        Parameters:
        c - The component to consider.
        Returns:
        A suitable Cursor, or null on failure.
      • dragGestureRecognized

        public void dragGestureRecognized​(java.awt.dnd.DragGestureEvent dge)
        Specified by:
        dragGestureRecognized in interface java.awt.dnd.DragGestureListener
      • dragEnter

        public void dragEnter​(java.awt.dnd.DragSourceDragEvent dsde)
        Specified by:
        dragEnter in interface java.awt.dnd.DragSourceListener
      • dragOver

        public void dragOver​(java.awt.dnd.DragSourceDragEvent dsde)
        Specified by:
        dragOver in interface java.awt.dnd.DragSourceListener
      • dragExit

        public void dragExit​(java.awt.dnd.DragSourceEvent dsde)
        Specified by:
        dragExit in interface java.awt.dnd.DragSourceListener
      • dragDropEnd

        public void dragDropEnd​(java.awt.dnd.DragSourceDropEvent dsde)
        Specified by:
        dragDropEnd in interface java.awt.dnd.DragSourceListener
      • dropActionChanged

        public void dropActionChanged​(java.awt.dnd.DragSourceDragEvent dsde)
        Specified by:
        dropActionChanged in interface java.awt.dnd.DragSourceListener