|DND: How to get dragged item before it is dropped? [message #233994]
||Wed, 09 May 2007 07:47
Originally posted by: robert.moestl.joanneum.at|
Is it possible to find out which object is dragged before it is dropped?
I want to give the user feedback by the cursor, if dragged object can be
dropped on the targeted editor. Therefore I thought that #handleDragOver
of class AbstractTransferDropTargetListener would be a good place to
do so. Unfortunately in this state #getCurrentEvent.data is always null.
As a workaround I have overwritten #isEnabled(DropTargetEvent event).
When the user now drops an object which is not allowed to be dropped
simply nothing happens. But in my opinion it would be more user friendly
when the cursor indicates whether the current action is allowed or not.
Powered by FUDForum
. Page generated in 0.01932 seconds