Is there any opposite method for DragManager.acceptDragDrop(),like DragManager.removeDragDrop() which can be handled in dragExit event.any ideas..
2 Answers
0
votes
The opposite of this:
DragManager.acceptDragDrop(component);
is this:
DragManager.acceptDragDrop(null);
Or just not call DragManager.acceptDragDrop at all, here you can read this:
If the drag data is not in a compatible format, do not call the DragManager.acceptDragDrop() method. If the event handler does not call this method, the user cannot drop the data and the drop target will not receive the dragOver, dragExit, and dragDrop events.