コード例 #1
0
    void makeChildren() {
      children = new ArrayList<>();

      if (var instanceof Structure) {
        Structure s = (Structure) var;
        List vars = s.getVariables();
        for (int i = 0; i < vars.size(); i++)
          children.add(new VariableNode(this, (VariableIF) vars.get(i)));
      }

      if (debugTree) System.out.println("children=" + var.getShortName() + " ");
    }
コード例 #2
0
 public String toString() {
   return var.getShortName();
 }
コード例 #3
0
 public int getIndex(TreeNode child) {
   if (debugTree) System.out.println("getIndex=" + var.getShortName() + " " + child);
   return children.indexOf(child);
 }
コード例 #4
0
 VariableNode(TreeNode parent, VariableIF var) {
   this.parent = parent;
   this.var = var;
   if (debugTree) System.out.println("new var=" + var.getShortName() + " ");
   // firePropertyChangeEvent(new PropertyChangeEvent(this, "TreeNode", null, var));
 }