Package ghidra.app.util
Class SelectionTransferable
- java.lang.Object
-
- ghidra.app.util.SelectionTransferable
-
- All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner
,java.awt.datatransfer.Transferable
public class SelectionTransferable extends java.lang.Object implements java.awt.datatransfer.Transferable, java.awt.datatransfer.ClipboardOwner
Defines data that is available for drag/drop and clipboard transfers. The data is an AddressSetView.
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.datatransfer.DataFlavor
localProgramSelectionFlavor
DataFlavor for program selection.
-
Constructor Summary
Constructors Constructor Description SelectionTransferable(SelectionTransferData selectionData)
Construct a new SelectionTransferable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getTransferData(java.awt.datatransfer.DataFlavor f)
Return the transfer data with the given data flavor.java.awt.datatransfer.DataFlavor[]
getTransferDataFlavors()
Return all data flavors that this class supports.boolean
isDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
Return whether the specifed data flavor is supported.void
lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
java.lang.String
toString()
-
-
-
Constructor Detail
-
SelectionTransferable
public SelectionTransferable(SelectionTransferData selectionData)
Construct a new SelectionTransferable.- Parameters:
selectionData
- the data indicating the selection for the selection transferable
-
-
Method Detail
-
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Return all data flavors that this class supports.- Specified by:
getTransferDataFlavors
in interfacejava.awt.datatransfer.Transferable
-
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor f)
Return whether the specifed data flavor is supported.- Specified by:
isDataFlavorSupported
in interfacejava.awt.datatransfer.Transferable
-
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor f) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
Return the transfer data with the given data flavor.- Specified by:
getTransferData
in interfacejava.awt.datatransfer.Transferable
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
- Specified by:
lostOwnership
in interfacejava.awt.datatransfer.ClipboardOwner
-
-