Package docking.widgets.tree.support
Interface GTreeDragNDropHandler
-
- All Superinterfaces:
GTreeTransferHandler
- All Known Implementing Classes:
DataTreeDragNDropHandler
,ErrLogExpandableDialog.ExcTreeTransferHandler
public interface GTreeDragNDropHandler extends GTreeTransferHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
drop(GTreeNode destUserData, java.awt.datatransfer.Transferable transferable, int dropAction)
Add the given transferable's data to the destination user data.int
getSupportedDragActions()
Returns the supported Drag actions for this tree.boolean
isDropSiteOk(GTreeNode destUserData, java.awt.datatransfer.DataFlavor[] flavors, int dropAction)
Return true if the drop site is valid for the given target.boolean
isStartDragOk(java.util.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 Detail
-
isStartDragOk
boolean isStartDragOk(java.util.List<GTreeNode> dragUserData, int dragAction)
Return true if the dragUserData can be dragged.- Parameters:
dragUserData
- data where user is initiating the drag operationdragAction
- user action for the drag operation
-
getSupportedDragActions
int getSupportedDragActions()
Returns the supported Drag actions for this tree. For available actions seeDnDConstants
.- Returns:
- the supported Drag actions.
-
isDropSiteOk
boolean isDropSiteOk(GTreeNode destUserData, java.awt.datatransfer.DataFlavor[] flavors, int dropAction)
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
-
drop
void drop(GTreeNode destUserData, java.awt.datatransfer.Transferable transferable, int dropAction)
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
-
-