Example #1
0
 public static Menu getMenuByStartWith(String menuId) {
   if (menuId.startsWith("/")) menuId = menuId.substring(1);
   for (Menu each : Menu.values()) {
     if (each.isLeaf()) if (menuId.startsWith(each.id)) return each;
   }
   return null;
 }
Example #2
0
 static {
   connector.setChildren(Menu.values());
   connector.orderSiblings();
 }