一、[url]http://www.walterzorn.com/dragdrop/dragdrop_e.htm[/url]
二、树节点对象 Ext.tree.TreeNode如果需要获取节点对象的element元素,则必须用getUI()方法返回TreeNodeUI对象,这个类的定义是This class provides the default UI implementation for Ext TreeNodes. The TreeNode UI implementation is separate from the tree implementation, and allows customizing of the appearance of tree nodes.If you are customizing the Tree's user interface, you may need to extend this class, but you should never need to instantiate this class.This class provides access to the user interface components of an Ext TreeNode, through Ext.tree.TreeNode.getUI。
这段话是说这个类是专门为Treenode的UI接口的实现对象,可以自定义节点的表现形式,如果想自定义节点,你可能需要派生这个类,但你不是一定需要实现这个类,
所以在节点内部是这样用的El的 new Ext.dd.DragSource(this.getUI().getEl(),{group:"dd"});//指定拖放的接受对象
而在节点外部则是
library.getNodeById("node4").ui.getEl().firstChild.id;
二、树节点对象 Ext.tree.TreeNode如果需要获取节点对象的element元素,则必须用getUI()方法返回TreeNodeUI对象,这个类的定义是This class provides the default UI implementation for Ext TreeNodes. The TreeNode UI implementation is separate from the tree implementation, and allows customizing of the appearance of tree nodes.If you are customizing the Tree's user interface, you may need to extend this class, but you should never need to instantiate this class.This class provides access to the user interface components of an Ext TreeNode, through Ext.tree.TreeNode.getUI。
这段话是说这个类是专门为Treenode的UI接口的实现对象,可以自定义节点的表现形式,如果想自定义节点,你可能需要派生这个类,但你不是一定需要实现这个类,
所以在节点内部是这样用的El的 new Ext.dd.DragSource(this.getUI().getEl(),{group:"dd"});//指定拖放的接受对象
而在节点外部则是
library.getNodeById("node4").ui.getEl().firstChild.id;