var webFXTreeHandler = {
idCounter : 0,
idPrefix : "节点编号是",
all : {},
behavior : null,
selected : null,
onSelect : null, /* should be part of tree, not handler */
/*
* To speed thing up if you're adding multiple nodes at once (after load)
* use the bNoIdent parameter to prevent automatic re-indentation and call
* the obj.ident() method manually once all nodes has been added.
*/
//加入节点方法
WebFXTreeAbstractNode.prototype.add = function (node, bNoIdent) {
node.parentNode = this; //node节点的父节点是this节点,即把node节点作为this节点的子节点
this.childNodes[this.childNodes.length] = node; //this节点的childNodes其中一个是node,即把node与this建立父子关系
var root = this; //把this当根节点