示例#1
0
文件: Menu.java 项目: co2y/mypojo
 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;
 }
示例#2
0
文件: Menu.java 项目: co2y/mypojo
 static {
   connector.setChildren(Menu.values());
   connector.orderSiblings();
 }