Package docking.widgets.tree.support
Interface GTreeDragNDropHandler
- All Superinterfaces:
GTreeTransferHandler
- All Known Implementing Classes:
DataTreeDragNDropHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drop
(GTreeNode destUserData, Transferable transferable, int dropAction) Add the given transferable's data to the destination user data.int
Returns the supported Drag actions for this tree.boolean
isDropSiteOk
(GTreeNode destUserData, DataFlavor[] flavors, int dropAction) Return true if the drop site is valid for the given target.boolean
isStartDragOk
(List<GTreeNode> dragUserData, int dragAction) Return true if the dragUserData can be dragged.Methods inherited from interface docking.widgets.tree.support.GTreeTransferHandler
getSupportedDataFlavors, getTransferData
-
Method Details
-
isStartDragOk
Return true if the dragUserData can be dragged.- Parameters:
dragUserData
- data where user is initiating the drag operationdragAction
- user action for the drag operation- Returns:
- true if the dragUserData can be dragged
-
getSupportedDragActions
int getSupportedDragActions()Returns the supported Drag actions for this tree. For available actions seeDnDConstants
.- Returns:
- the supported Drag actions.
-
isDropSiteOk
Return true if the drop site is valid for the given target.- Parameters:
destUserData
- destination for node being draggedflavors
- flavor(s) being draggeddropAction
- user action for drop operation- Returns:
- true if the drop site is valid for the given target
-
drop
Add the given transferable's data to the destination user data.- Parameters:
destUserData
- destination node for the data.transferable
- the transferable being dragged whose data will be dropped.dropAction
- user action for drop operation
-