-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.2
-
x86
-
windows_2000
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)
======================================================================
- duplicates
-
JDK-4942851 canImport should carry Transferable in TransferHandler
- Resolved