arlut.csd.JTree
Interface treeDragDropCallback

All Known Implementing Classes:
GASHSchema

public interface treeDragDropCallback

Callback interface to be implemented by objects that manage drag and drop behavior within a treeControl.

See Also:
treeControl

Method Summary
 void dragLineRelease(treeNode dragNode, treeNode aboveNode, treeNode belowNode)
          Called when a DRAG_LINE drag operation ends.
 boolean dragLineTween(treeNode dragNode, treeNode aboveNode, treeNode belowNode)
          Called during a DRAG_LINE drag operation, when the dragNode is pulled between the midline of a pair of rows.
 void iconDragDrop(treeNode dragNode, treeNode targetNode)
          Called whenever a DRAG_ICON drag ends, to notify the client what node the dragNode is being dropped onto.
 boolean iconDragOver(treeNode dragNode, treeNode targetNode)
          Called during a DRAG_ICON drag whenever the icon being dragged is moved onto a new node's row.
 boolean startDrag(treeNode dragNode)
          Called whenever a drag begins, to verify that the node in question may be dragged.
 

Method Detail

startDrag

public boolean startDrag(treeNode dragNode)
Called whenever a drag begins, to verify that the node in question may be dragged.
Parameters:
dragNode - The node in the tree that the user is attempting to drag.

iconDragOver

public boolean iconDragOver(treeNode dragNode,
                            treeNode targetNode)
Called during a DRAG_ICON drag whenever the icon being dragged is moved onto a new node's row. The iconDragOver callback can return false, in which case the row that the node is being dragged onto will not be selected.
Parameters:
dragNode - The node in the tree that the user is attempting to drag.
targetNode - The node in the tree that the dragNode is being moved onto.

iconDragDrop

public void iconDragDrop(treeNode dragNode,
                         treeNode targetNode)
Called whenever a DRAG_ICON drag ends, to notify the client what node the dragNode is being dropped onto. iconDragDrop() will not be called if the client refused the iconDragOver() for the targetNode in question.
Parameters:
dragNode - The node in the tree that the user is attempting to drag.
targetNode - The node in the tree that the dragNode is being dropped onto.

dragLineTween

public boolean dragLineTween(treeNode dragNode,
                             treeNode aboveNode,
                             treeNode belowNode)
Called during a DRAG_LINE drag operation, when the dragNode is pulled between the midline of a pair of rows.
Parameters:
dragNode - The node in the tree that the user is attempting to drag.
aboveNode - The node in the tree below which the line is being dragged to.
belowNode - The node in the tree above which the line is being dragged to.

dragLineRelease

public void dragLineRelease(treeNode dragNode,
                            treeNode aboveNode,
                            treeNode belowNode)
Called when a DRAG_LINE drag operation ends. If the client returned false when the line was pulled between aboveNode and belowNode, dragLineRelease() will not be called.
Parameters:
dragNode - The node in the tree that the user is attempting to drag.
aboveNode - The node in the tree below which the line is being released.
belowNode - The node in the tree above which the line is being released.