Package docking.widgets.tree.support
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 Summary
Modifier and TypeMethodDescriptiongetSupportedDataFlavors
(List<GTreeNode> transferNodes) Returns the DataFlavors for the types of data that this transferable supports, based upon the given selection.getTransferData
(List<GTreeNode> transferNodes, DataFlavor flavor) Gets the transfer data from the selection based upon the given flavor.
-
Method Details
-
getSupportedDataFlavors
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 bygetSupportedDataFlavors(List)
.
-