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
Modifier and TypeMethodDescriptionvoid
add
(Object obj, DropTargetDropEvent e, DataFlavor f) Add the object to the droppable component.default void
dragUnderFeedback
(boolean ok, DropTargetDragEvent e) Set drag feedback according to the ok parameterboolean
Return true if is OK to drop the transferable at the location specified the eventdefault void
Revert back to normal if any drag feedback was set
-
Method Details
-
isDropOk
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
-
add
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.
-
dragUnderFeedback
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
default void undoDragUnderFeedback()Revert back to normal if any drag feedback was set
-