public interface TreeImportHandler extends TreeModule
FlexibleTree
Modifier and Type | Method and Description |
---|---|
boolean |
canImportBetween(TreePath precedingNode,
TreePath followingNode,
int sourceDropActions,
Transferable transferable)
Check whether an import of the given transferable is possible between the given nodes.
|
boolean |
canImportInto(TreePath node,
int sourceDropActions,
Transferable transferable)
Check whether an import of the given transferable is possible into the given node.
|
void |
importBetween(TreePath precedingNode,
TreePath followingNode,
int sourceDropActions,
Transferable transferable)
Perform an import of the given transferable between the given nodes.
|
void |
importInto(TreePath node,
int sourceDropActions,
Transferable transferable)
Perform an import of the given transferable into the given node.
|
boolean canImportBetween(TreePath precedingNode, TreePath followingNode, int sourceDropActions, Transferable transferable)
null
if the node is the first or last within its hierarchy level.precedingNode
- the node above the insertion position assuming a standard vertical tree
visualizationfollowingNode
- the node below the insertion positionsourceDropActions
- the drop actions allowed by the sourcetransferable
- the transferable holding the data to be transferredtrue
if the import is possiblevoid importBetween(TreePath precedingNode, TreePath followingNode, int sourceDropActions, Transferable transferable) throws IOException, UnsupportedFlavorException
null
if the node is the first or last within its hierarchy level.precedingNode
- the node above the insertion position assuming a standard vertical tree
visualizationfollowingNode
- the node below the insertion positionsourceDropActions
- the drop actions allowed by the sourcetransferable
- the transferable holding the data to be transferredIOException
UnsupportedFlavorException
boolean canImportInto(TreePath node, int sourceDropActions, Transferable transferable)
node
- the node into which the import should be performedsourceDropActions
- the drop actions allowed by the sourcetransferable
- the transferable holding the data to be transferredtrue
if the import is possiblevoid importInto(TreePath node, int sourceDropActions, Transferable transferable) throws IOException, UnsupportedFlavorException
node
- the node into which the import should be performedsourceDropActions
- the drop actions allowed by the sourcetransferable
- the transferable holding the data to be transferredIOException
UnsupportedFlavorException
Copyright © 2024 levigo holding gmbh. All rights reserved.