Package docking.widgets.tree.support
Class GTreeNodeTransferable
java.lang.Object
docking.widgets.tree.support.GTreeNodeTransferable
- All Implemented Interfaces:
Transferable
A transferable for sharing data via drag/drop and clipboard operations for GTrees
-
Constructor Summary
ConstructorDescriptionGTreeNodeTransferable
(GTreeTransferHandler handler, List<GTreeNode> selectedData) Creates this transferable based upon the selected data and uses the given transfer handler to performTransferable
operations -
Method Summary
Modifier and TypeMethodDescriptionReturns all of the original selected data contained by this transferable.getTransferData
(DataFlavor flavor) Gets the transfer data from the selection based upon the given flavorReturns the DataFlavors for the types of data that this transferable supports, based upon the given selectionboolean
isDataFlavorSupported
(DataFlavor flavor) A convenience method to determine if this transferable supports the given flavor
-
Constructor Details
-
GTreeNodeTransferable
Creates this transferable based upon the selected data and uses the given transfer handler to performTransferable
operations- Parameters:
handler
- the handler used to perform transfer operationsselectedData
- The selected tree nodes
-
-
Method Details
-
getAllData
Returns all of the original selected data contained by this transferable.- Returns:
- all of the original selected data contained by this transferable
-
getTransferData
Gets the transfer data from the selection based upon the given flavor- Specified by:
getTransferData
in interfaceTransferable
- Parameters:
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 bygetTransferDataFlavors()
IOException
-
getTransferDataFlavors
Returns the DataFlavors for the types of data that this transferable supports, based upon the given selection- Specified by:
getTransferDataFlavors
in interfaceTransferable
- Returns:
- the DataFlavors for the types of data that this transferable supports, based upon the given selection
-
isDataFlavorSupported
A convenience method to determine if this transferable supports the given flavor- Specified by:
isDataFlavorSupported
in interfaceTransferable
- Returns:
- true if this transferable supports the given flavor
-