Package docking.dnd
Class GhidraTransferable
java.lang.Object
docking.dnd.GhidraTransferable
- All Implemented Interfaces:
ClipboardOwner
,Transferable
-
Field Summary
Modifier and TypeFieldDescriptionstatic DataFlavor
A static instance of the local flavor that is an ArrayList of user object objects. -
Constructor Summary
ConstructorDescriptionGhidraTransferable
(List<?> dataList) Constructs a new Transferable from the array of DragDropNodes -
Method Summary
Modifier and TypeMethodDescriptionReturn the transfer data with the given data flavor.Return all data flavors that this class supports.boolean
Return whether the specifed data flavor is supported.void
lostOwnership
(Clipboard clipboard, Transferable contents) Notification we have lost ownership of the clipboard because something else was put on the clipboard.toString()
Get the string representation for this transferable.
-
Field Details
-
localGhidraFlavor
A static instance of the local flavor that is an ArrayList of user object objects.
-
-
Constructor Details
-
GhidraTransferable
Constructs a new Transferable from the array of DragDropNodes- Parameters:
dataList
- the array of DragDropNodes being transfered.
-
-
Method Details
-
getTransferDataFlavors
Return all data flavors that this class supports.- Specified by:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
Return whether the specifed data flavor is supported.- Specified by:
isDataFlavorSupported
in interfaceTransferable
- Parameters:
f
- the DataFlavor to check if supported.
-
getTransferData
Return the transfer data with the given data flavor.- Specified by:
getTransferData
in interfaceTransferable
- Parameters:
f
- the DataFlavor for which to get a Transferable.- Throws:
UnsupportedFlavorException
IOException
-
toString
Get the string representation for this transferable. -
lostOwnership
Notification we have lost ownership of the clipboard because something else was put on the clipboard.- Specified by:
lostOwnership
in interfaceClipboardOwner
- Parameters:
clipboard
- the system clipboard.contents
- the Transferable lost in the clipboard.
-