Package xal.extension.bricks
Class ViewTransferable
java.lang.Object
xal.extension.bricks.ViewTransferable
- All Implemented Interfaces:
Transferable
transferable for transferring views
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DataFlavor[]
the list of flavors associated with view transferstatic final DataFlavor
define the view flavorThe views being transferred -
Constructor Summary
ConstructorsConstructorDescriptionViewTransferable
(List<BeanProxy<?>> beanProxies) Primary ConstructorViewTransferable
(BeanProxy<?> viewProxy) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetTransferData
(DataFlavor flavor) Get the data being transferred which in this case is simply the list of viewsThe flavors handled by this transferable which is presently just VIEW_FLAVORboolean
isDataFlavorSupported
(DataFlavor flavor) Test if the specified flavor is supported by this instance.
-
Field Details
-
VIEW_FLAVOR
define the view flavor -
FLAVORS
the list of flavors associated with view transfer -
viewProxies
The views being transferred
-
-
Constructor Details
-
ViewTransferable
Primary Constructor- Parameters:
beanProxies
- The views being transferred
-
ViewTransferable
Constructor- Parameters:
viewProxy
- The view to transfer
-
-
Method Details
-
getTransferData
Get the data being transferred which in this case is simply the list of views- Specified by:
getTransferData
in interfaceTransferable
- Parameters:
flavor
- The flavor of the transfer- Returns:
- The views being transferred
-
getTransferDataFlavors
The flavors handled by this transferable which is presently just VIEW_FLAVOR- Specified by:
getTransferDataFlavors
in 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:
isDataFlavorSupported
in interfaceTransferable
- Parameters:
flavor
- The flavor to test.- Returns:
- true if the flavor is among the supported flavors and false otherwise.
-