Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 5029427
Votes 0
Synopsis Location sensitive dropping
Category java:classes_swing
Reported Against 1.4.2
Release Fixed
State 11-Closed, duplicate of 4942851, request for enhancement
Priority: 4-Low
Related Bugs
Submit Date 09-APR-2004
Description




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) 
======================================================================
Work Around
N/A
Evaluation




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.

  xxxxx@xxxxx    2004-04-09


======================================================================

YES! We definitely need to provide this support in Swing.
  xxxxx@xxxxx   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.
  xxxxx@xxxxx   2005-05-20 15:30:26 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang