Interface GTreeTransferHandler

All Known Subinterfaces:
GTreeDragNDropHandler
All Known Implementing Classes:
DataTreeDragNDropHandler

public interface GTreeTransferHandler
A generic transfer handler used by GTrees to handle transferring drag/drop data and clipboard data.
  • Method Details

    • getSupportedDataFlavors

      DataFlavor[] getSupportedDataFlavors(List<GTreeNode> transferNodes)
      Returns the DataFlavors for the types of data that this transferable supports, based upon the given selection.
      Parameters:
      transferNodes - The nodes to base the DataFlavor selection upon.
      Returns:
      the DataFlavors for the types of data that this transferable supports, based upon the given selection.
    • getTransferData

      Object getTransferData(List<GTreeNode> transferNodes, DataFlavor flavor) throws UnsupportedFlavorException
      Gets the transfer data from the selection based upon the given flavor.
      Parameters:
      transferNodes - The nodes from which to get the data.
      flavor - The flavor of data to retrieve from the given selection.
      Returns:
      the transfer data from the selection based upon the given flavor.
      Throws:
      UnsupportedFlavorException - if the given flavor is not one of the supported flavors returned by getSupportedDataFlavors(List).