Beispiel #1
0
  void addChilds(MenuExtra menu, MenuExtra res) {
    if (DEBUG_ME) System.out.println("gerando " + menu.getLabel());
    Iterator i = menu.iterator();
    while (i.hasNext()) {
      Map.Entry entry = (Map.Entry) i.next();
      MenuExtra m = (MenuExtra) entry.getValue();
      MenuExtra r = (MenuExtra) m.clone();

      addChilds(m, r);
      if (r.hasChildren() || r.hasPath()) {
        res.addChild(r);
      }
    }
  }