Package ghidra.framework.main

# Class ToolButtonTransferable

java.lang.Object
ghidra.framework.main.ToolButtonTransferable

All Implemented Interfaces:
  `ClipboardOwner`, `Transferable`

public class ToolButtonTransferable extends Object implements Transferable, ClipboardOwner
Defines data that is available for drag/drop and clipboard transfers. The data is a ToolButton object.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static DataFlavor`
  `localToolButtonFlavor`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `getTransferData(DataFlavor f)`
  `DataFlavor[]`
  `getTransferDataFlavors()`
  `boolean`
  `isDataFlavorSupported(DataFlavor f)`
  `void`
  `lostOwnership(Clipboard clipboard, Transferable contents)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### localToolButtonFlavor

    public static DataFlavor localToolButtonFlavor

- ## Method Details

  - ### getTransferDataFlavors

    public DataFlavor[] getTransferDataFlavors()
    Specified by:
      `getTransferDataFlavors` in interface `Transferable`

  - ### isDataFlavorSupported

    public boolean isDataFlavorSupported(DataFlavor f)
    Specified by:
      `isDataFlavorSupported` in interface `Transferable`

  - ### getTransferData

    public Object getTransferData(DataFlavor f) throws UnsupportedFlavorException, IOException
    Specified by:
      `getTransferData` in interface `Transferable`
    Throws:
      `UnsupportedFlavorException`
      `IOException`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### lostOwnership

    public void lostOwnership(Clipboard clipboard, Transferable contents)
    Specified by:
      `lostOwnership` in interface `ClipboardOwner`