From e1e781bb2135ef78592226f1a3eaba4925702f1f Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 3 May 2021 16:38:41 -0700 Subject: :star: --- NET/worlds/console/StatTreeNode.java | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 NET/worlds/console/StatTreeNode.java (limited to 'NET/worlds/console/StatTreeNode.java') 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 getChildren() +/* */ { +/* 26 */ Vector children = this._obj.getChildren(); +/* 27 */ if (children == null) +/* 28 */ return new Vector(); +/* 29 */ if (children.size() <= 0) +/* 30 */ return children; +/* 31 */ Vector 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 -- cgit v1.2.3