Package docking.dnd
Interface Droppable
-
- All Known Implementing Classes:
FileOpenDropHandler
,GhidraFileChooserPanel
public interface Droppable
Methods called by the DropTargetAdapter that implements the DropTargetListener interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(java.lang.Object obj, java.awt.dnd.DropTargetDropEvent e, java.awt.datatransfer.DataFlavor f)
Add the object to the droppable component.void
dragUnderFeedback(boolean ok, java.awt.dnd.DropTargetDragEvent e)
Set drag feedback according to the ok parameterboolean
isDropOk(java.awt.dnd.DropTargetDragEvent e)
Return true if is OK to drop the transferable at the location specified the eventvoid
undoDragUnderFeedback()
Revert back to normal if any drag feedback was set
-
-
-
Method Detail
-
isDropOk
boolean isDropOk(java.awt.dnd.DropTargetDragEvent e)
Return true if is OK to drop the transferable at the location specified the event- Parameters:
e
- event that has current state of drag and drop operation- Returns:
- true if OK
-
dragUnderFeedback
void dragUnderFeedback(boolean ok, java.awt.dnd.DropTargetDragEvent e)
Set drag feedback according to the ok parameter- Parameters:
ok
- true means the drop action is OKe
- event that has current state of drag and drop operation
-
undoDragUnderFeedback
void undoDragUnderFeedback()
Revert back to normal if any drag feedback was set
-
add
void add(java.lang.Object obj, java.awt.dnd.DropTargetDropEvent e, java.awt.datatransfer.DataFlavor f)
Add the object to the droppable component. The DropTargetAdapter calls this method from its drop() method.- Parameters:
obj
- Transferable object that is to be dropped.e
- has current state of drop operationf
- represents the opaque concept of a data format as would appear on a clipboard, during drag and drop.
-
-