N
- nodes typeT
- tree typeM
- tree model typepublic interface TreeDropHandler<N extends UniqueNode,T extends WebTree<N>,M extends WebTreeModel<N>>
Modifier and Type | Method and Description |
---|---|
boolean |
canDrop(TransferHandler.TransferSupport support,
T tree,
M model,
N destination)
Returns whether or not drop operation can be performed on the specified destination node.
|
List<DataFlavor> |
getSupportedFlavors()
Returns list of data flavors supported by this drop handler.
|
void |
performDrop(TransferHandler.TransferSupport support,
T tree,
M model,
N destination,
int index,
NodesDropCallback<N> callback)
Performs nodes drop operations.
|
boolean |
prepareDrop(TransferHandler.TransferSupport support,
T tree,
M model,
N destination,
int index)
Returns whether or not drop operation can be performed on the specified destination node.
|
@NotNull List<DataFlavor> getSupportedFlavors()
boolean canDrop(@NotNull TransferHandler.TransferSupport support, @NotNull T tree, @NotNull M model, @NotNull N destination)
support
- transfer support datatree
- destination treemodel
- tree modeldestination
- drop destination nodetrue
if drop operation can be performed on the specified destination node, false
otherwiseboolean prepareDrop(@NotNull TransferHandler.TransferSupport support, @NotNull T tree, @NotNull M model, @NotNull N destination, int index)
support
- transfer support datatree
- destination treemodel
- tree modeldestination
- drop destination nodeindex
- nodes drop indextrue
if drop operation can be performed on the specified destination node, false
otherwisevoid performDrop(@NotNull TransferHandler.TransferSupport support, @NotNull T tree, @NotNull M model, @NotNull N destination, int index, @NotNull NodesDropCallback<N> callback)
support
- transfer support datatree
- destination treemodel
- tree modeldestination
- drop destination nodeindex
- nodes drop indexcallback
- operation callbackCopyright © 2020. All rights reserved.