Ejemplo n.º 1
0
    HashMap getData(ReplicatedTree tree, String fqn) {
      HashMap data;
      Set keys;
      String key;
      Object value;

      if (tree == null || fqn == null) return null;
      keys = tree.getKeys(fqn);
      if (keys == null) return null;
      data = new HashMap();
      for (Iterator it = keys.iterator(); it.hasNext(); ) {
        key = (String) it.next();
        value = tree.get(fqn, key);
        if (value != null) data.put(key, value);
      }
      return data;
    }
Ejemplo n.º 2
0
    /** Recursively adds GUI nodes starting from fqn */
    void addGuiNode(String fqn) {
      Set children;
      String child_name;

      if (fqn == null) return;

      // 1 . Add myself
      root.add(fqn);

      // 2. Then add my children
      children = tree.getChildrenNames(fqn);
      if (children != null) {
        for (Iterator it = children.iterator(); it.hasNext(); ) {
          child_name = (String) it.next();
          addGuiNode(fqn + SEP + child_name);
        }
      }
    }
Ejemplo n.º 3
0
 Iterator getExpandedNodes() {
   return expandedNodes.iterator();
 }