示例#1
0
 public static Request addToNavbar(Request r, String name) {
   assert (!_navbar.containsKey(name));
   ArrayList<MenuItem> arl = new ArrayList();
   arl.add(new MenuItem(r, name));
   _navbar.put(name, arl);
   _navbarOrdering.add(name);
   return r;
 }
示例#2
0
 public static Request addToNavbar(Request r, String name, String category) {
   ArrayList<MenuItem> arl = _navbar.get(category);
   if (arl == null) {
     arl = new ArrayList();
     _navbar.put(category, arl);
     _navbarOrdering.add(category);
   }
   arl.add(new MenuItem(r, name));
   return r;
 }