add selector

This commit is contained in:
fanfuxiaoran 2013-12-26 17:53:51 +08:00
parent 5948f20d81
commit b0ca99bd3e
2 changed files with 41 additions and 2 deletions

4
.gitignore vendored
View File

@ -1,5 +1,5 @@
/target
/logs
.project
.classpath
@ -10,4 +10,4 @@
.externalToolBuilders
/src/main/webapp/.htaccess
/logs

View File

@ -0,0 +1,39 @@
function initSelectGraphDialog(parent, tree) {
if (tree == null)
return;
if (tree.child != null && tree.child.length > 0) {
var selected = tree.child[0];
var options = new Array();
for ( var i = 0; i < tree.child.length; i++) {
options.push(tree.child[i].key);
}
parent.append(createSingleList(tree.childClass, options));
initSelectGraphDialog(parent, selected);
}
}
var ChartSelector=function(allTree,showTree){
this.allTree=allTree;
this.addTree=showTree;
this.deleteTree=allTree.getExcessTree(allTree,showTree);
this.addSelector=this.createSeletor(showTree);
};
ChartSelector.prototype.createSeletor=function(tree,actionFunction){
};
ChartSelector.prototype.addGraph= function(){
};