/* */ package NET.worlds.console; /* */ /* */ import java.awt.List; /* */ import java.util.Vector; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ abstract class StatMan /* */ { /* */ protected Vector _children; /* */ protected List _grabbedList; /* */ protected Tree _tree; /* */ /* */ void createList() /* */ { /* 22 */ updateList(); /* */ } /* */ /* */ abstract void updateList(); /* */ /* */ void releaseList(boolean terminalCallback) { /* 28 */ this._grabbedList = null; /* */ } /* */ /* */ void grabList(List list) /* */ { /* 33 */ assert (this._grabbedList == null); /* */ /* 35 */ this._grabbedList = list; /* 36 */ this._grabbedList.removeAll(); /* 37 */ createList(); /* */ } /* */ /* */ void setTree(Tree tree) { /* 41 */ this._tree = tree; /* 42 */ if (this._children != null) { /* 43 */ for (int i = this._children.size() - 1; i >= 0; i--) { /* 44 */ StatMan child = (StatMan)this._children.elementAt(i); /* 45 */ child.setTree(this._tree); /* */ } /* */ } /* */ } /* */ /* */ Vector getChildren() { /* 51 */ return this._children; /* */ } /* */ /* */ void addChild(StatMan child) { /* 55 */ assert (child != null); /* 56 */ if (this._children == null) /* 57 */ this._children = new Vector(); /* 58 */ assert (this._children.indexOf(child) == -1); /* 59 */ this._children.addElement(child); /* 60 */ if (this._tree != null) { /* 61 */ child.setTree(this._tree); /* 62 */ this._tree.update(); /* */ } /* */ } /* */ } /* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\console\StatMan.class * Java compiler version: 6 (50.0) * JD-Core Version: 0.7.1 */