Package xal.extension.bricks
Class ViewNodeTransferable
java.lang.Object
xal.extension.bricks.ViewNodeTransferable
- All Implemented Interfaces:
Transferable
transferable for transferring view nodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataFlavor[]the list of flavors associated with view node transferstatic final DataFlavordefine the view node flavorThe view nodes being transferred -
Constructor Summary
ConstructorsConstructorDescriptionViewNodeTransferable(List<BeanNode<?>> nodes) Primary ConstructorViewNodeTransferable(BeanNode<?> node) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetTransferData(DataFlavor flavor) Get the data being transferred which in this case is simply the list of view nodesThe flavors handled by this transferable which is presently just VIEW_FLAVORbooleanisDataFlavorSupported(DataFlavor flavor) Test if the specified flavor is supported by this instance.
-
Field Details
-
VIEW_NODE_FLAVOR
define the view node flavor -
FLAVORS
the list of flavors associated with view node transfer -
viewNodes
The view nodes being transferred
-
-
Constructor Details
-
ViewNodeTransferable
Primary Constructor- Parameters:
nodes- The nodes being transferred
-
ViewNodeTransferable
Constructor- Parameters:
node- The node to transfer
-
-
Method Details
-
getTransferData
Get the data being transferred which in this case is simply the list of view nodes- Specified by:
getTransferDatain interfaceTransferable- Parameters:
flavor- The flavor of the transfer- Returns:
- The nodes to transfer
-
getTransferDataFlavors
The flavors handled by this transferable which is presently just VIEW_FLAVOR- Specified by:
getTransferDataFlavorsin interfaceTransferable- Returns:
- the array of flavors handled
-
isDataFlavorSupported
Test if the specified flavor is supported by this instance. Only VIEW_FLAVOR is currently supported.- Specified by:
isDataFlavorSupportedin interfaceTransferable- Parameters:
flavor- The flavor to test.- Returns:
- true if the flavor is among the supported flavors and false otherwise.
-