United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5029427 Location sensitive dropping
JDK-5029427 : Location sensitive dropping

Details
Type:
Enhancement
Submit Date:
2004-04-09
Status:
Closed
Updated Date:
2005-05-20
Project Name:
JDK
Resolved Date:
2005-05-20
Component:
client-libs
OS:
windows_2000
Sub-Component:
javax.swing
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
1.4.2
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

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
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-25
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
                                     
2005-05-20



Hardware and Software, Engineered to Work Together