public interface INodeDragAndDropPolicy extends IPolicy
| Modifier and Type | Method and Description | 
|---|---|
| int | getDragActions(Object node,
              ITreeTableModel model)Determines how the given node can be dragged (copy, move, copy or move,
 none). | 
| ICommand | getDragAndDropCommand(Object droppedNode,
                     Object oldParent,
                     ITreeTableModel oldModel,
                     int oldChildIndex,
                     Object newParent,
                     ITreeTableModel newModel,
                     int newChildIndex,
                     int dropAction)Returns the command object that will perform the actual changes required
 in order to detach the node from its current parent and attach it to its
 new parent. | 
| int | getDropActions(Object draggedNode,
              Object draggedNodeParent,
              ITreeTableModel draggedNodeModel,
              Object newParentNode,
              ITreeTableModel newModel)Determines how the given dragged node can be dropped onto the given new
 parent node (copy, move, copy or move, none). | 
int getDragActions(Object node, ITreeTableModel model)
DnDConstants class.node - the node to check for its drag capabilitymodel - the model to which the node belongsDnDConstants)int getDropActions(Object draggedNode, Object draggedNodeParent, ITreeTableModel draggedNodeModel, Object newParentNode, ITreeTableModel newModel)
dragActions argument and the return value are defined as
 constants in the DnDConstants class.draggedNode - the dragged nodedraggedNodeParent - the parent to which the dragged node belongsdraggedNodeModel - the model to which the node belongsnewParentNode - the candidate node for being the new parent of the dragged
            nodenewModel - the model to which the new parent belongsDnDConstants)ICommand getDragAndDropCommand(Object droppedNode, Object oldParent, ITreeTableModel oldModel, int oldChildIndex, Object newParent, ITreeTableModel newModel, int newChildIndex, int dropAction)
droppedNode - the droppedNode nodeoldParent - the parent to which the dragged node belongsoldModel - the model to which the node belongsoldChildIndex - the location of the dragged node inside the list of children
            nodes of its current parentnewParent - the candidate node for being the new parent of the dragged
            nodenewModel - the model to which the new parent belongsnewChildIndex - the location of the dragged node inside the list of children
            nodes of its new parentdropAction - contains drop action identifier (possible values listed in
            DnDConstants).Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.