Revisions:
20 decembre 2002 Sacha Labourey:
// Static -------------------------------------------------------- // Constructors -------------------------------------------------- this.tree = tree; // create starting set of subnodes // Vector nodes = new Vector (); ManageableResource[] roots = tree.getRootResources (); for (int i=0; i<roots.length; i++) { ManageableResource mr = roots[i]; TreeNode[] ns = tree.getTreesForResource (mr); if (ns != null && ns.length > 0) nodes.addAll (java.util.Arrays.asList (ns)); } realSons = new TreeNode[nodes.size ()]; sons = new NodeWrapper[nodes.size ()]; for (int i=0; i<realSons.length; i++) realSons[i] = (TreeNode)nodes.elementAt (i);
return this.tree.getHomeAction ();
if (index >= sons.length) return null; if (sons[index] == null) sons[index] = new StdNodeWrapper(realSons[index], tree, ""); return sons[index];
return this.realSons.length;
return this.tree.getDescription ();
return this.tree.getIconUrl();
for (int i=0; i<this.sons.length; i++) { if (this.sons[i] == child) return i; } return -1;
return this.tree.getRootMenus();
return "";
return this.sons.length == 0;
return "JBoss Management Console";