01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08: package com.gwtext.client.widgets.tree;
09:
10: /**
11: * This callback inferface can be used to customize what happends when a tree node is dropped on another node.
12: * For example the behaviour can to move / copy the dropped node to the drop point, or even
13: * create multiple tree nodes then a drop event occurs.
14: *
15: * @see com.gwtext.client.widgets.tree.event.TreePanelListener#doBeforeNodeDrop(TreePanel, TreeNode, com.gwtext.client.dd.DragData, String, com.gwtext.client.dd.DragDrop, TreeNode, DropNodeCallback)
16: */
17: public interface DropNodeCallback {
18:
19: /**
20: * Set the drop node to a single tree node.
21: *
22: * @param node the new node
23: */
24: void setDropNode(TreeNode node);
25:
26: /**
27: * Set the drop to result in multiple tree nodes.
28: *
29: * @param nodes the tree nodes
30: */
31: void setDropNodes(TreeNode[] nodes);
32:
33: }
|