JDK-5029427 : Location sensitive dropping
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2004-04-09
  • Updated: 2005-05-20
  • Resolved: 2005-05-20
Related Reports
Duplicate :  
Description

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) 
======================================================================

Comments
EVALUATION Name: agR10216 Date: 04/09/2004 This RFE requests some functionality (that is available by means of AWT DnD support) to be implemented in Swing's TransferHandler. Recategorizing to classes_swing. ###@###.### 2004-04-09 ====================================================================== YES! We definitely need to provide this support in Swing. ###@###.### 2004-04-26 This will be fixed by 4942851 which will add overloaded versions of canImport() and importData() that take a new TransferInfo class containing (among other things) the drop point, and a drop location as determined by the component for the drop point. Closing as a duplicate. ###@###.### 2005-05-20 15:30:26 GMT
20-05-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
25-09-2004