Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5029427

Location sensitive dropping

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



      Name: rmT116609 Date: 04/08/2004


      A DESCRIPTION OF THE REQUEST :
      If you use drag &drop, it is common to override the importData(JComponent comp, Transferable t) method of the TransferHandler class. But often the action which has to be performed in the overridden method depends on the exact cursor location, when the drop happend (e.g. you want to drag a button to a specific location on a tool bar). So it would be nice, to have a additional method importData(JComponent comp, Transferable t, Point dropLocation) which can be overridden ( the TransferHandler.DropHandler.drop method should call this new method and the implementaion of this new method in TransferHandler should call the old importData(JComponent comp, Transferable t) method.

      JUSTIFICATION :
      Without this feature you have to write all this drag & drop stuff yourself, if you need a location sensitive import of data
      (Incident Review ID: 243913)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: