Interface GTreeTransferHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.datatransfer.DataFlavor[] getSupportedDataFlavors​(java.util.List<GTreeNode> transferNodes)
      Returns the DataFlavors for the types of data that this transferable supports, based upon the given selection.
      java.lang.Object getTransferData​(java.util.List<GTreeNode> transferNodes, java.awt.datatransfer.DataFlavor flavor)
      Gets the transfer data from the selection based upon the given flavor.
    • Method Detail

      • getSupportedDataFlavors

        java.awt.datatransfer.DataFlavor[] getSupportedDataFlavors​(java.util.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

        java.lang.Object getTransferData​(java.util.List<GTreeNode> transferNodes,
                                         java.awt.datatransfer.DataFlavor flavor)
                                  throws java.awt.datatransfer.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:
        java.awt.datatransfer.UnsupportedFlavorException - if the given flavor is not one of the supported flavors returned by getSupportedDataFlavors(List).