com.qn.dlg.DirDlg.prototype.list = function (path){ if(path) { var rootNode = this.tree.getRoot(); var file = rootNode.userObject; file.setPath(path); } this.tree.setSelected(this.tree.getRoot()); }
com.qn.dlg.DirDlg.prototype.buildTree = function (){ var __this = this; var tree = this.tree = new com.qn.ui.FileTreeView(); tree.getUI().style.height = "170px"; tree.getUI().style.width = "100%";
this.leftDiv.appendChild(tree.getUI());
var file = new com.qn.io.File(); file.type = 1; file.setPath("/"); var rootnode = new js.ui.tree.TreeNode(tree); rootnode.setUserObject(file); tree.setRoot(rootnode); // rootnode.getRenderer().text.innerHTML = props("Share Folders");