diff options
Diffstat (limited to 'NET/worlds/console/StatTreeNode.java')
| -rw-r--r-- | NET/worlds/console/StatTreeNode.java | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/NET/worlds/console/StatTreeNode.java b/NET/worlds/console/StatTreeNode.java new file mode 100644 index 0000000..9f9e478 --- /dev/null +++ b/NET/worlds/console/StatTreeNode.java @@ -0,0 +1,54 @@ +/* */ package NET.worlds.console; +/* */ +/* */ import java.util.Vector; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class StatTreeNode +/* */ extends TreeNode +/* */ { +/* */ private StatMan _obj; +/* */ +/* */ public StatTreeNode(StatMan obj, TreeNode parent) +/* */ { +/* 19 */ super(parent); +/* 20 */ assert (obj != null); +/* 21 */ this._obj = obj; +/* */ } +/* */ +/* */ public Vector<Object> getChildren() +/* */ { +/* 26 */ Vector<Object> children = this._obj.getChildren(); +/* 27 */ if (children == null) +/* 28 */ return new Vector(); +/* 29 */ if (children.size() <= 0) +/* 30 */ return children; +/* 31 */ Vector<Object> ret = new Vector(); +/* 32 */ for (int i = 0; i <= children.size() - 1; i++) { +/* 33 */ ret.addElement(new StatTreeNode((StatMan)children.elementAt(i), +/* 34 */ this)); +/* */ } +/* 36 */ return ret; +/* */ } +/* */ +/* */ public Object getObject() +/* */ { +/* 41 */ return this._obj; +/* */ } +/* */ +/* */ public String toString() +/* */ { +/* 46 */ return this._obj.toString(); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\StatTreeNode.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |