Examples of ZTreeMenu


Examples of com.exedosoft.plat.ui.jquery.menu.data.ZTreeMenu

   
    if(menuModel==null){
      return null;
    }
    String sysTreeRoot =  menuModel.getL10n();
    ZTreeMenu rootMenu = createZTreeMenu(menuModel);
    if(menuModel.getMenuType()!=null
        && menuModel.getMenuType().intValue() == DOMenuModel.MENUTYPE_NAVIGATION
        && DOGlobals.getInstance().getSessoinContext().getSysTreeRoot()!=null){
      sysTreeRoot = DOGlobals.getInstance().getSessoinContext().getSysTreeRoot();
      rootMenu.setName(sysTreeRoot);
    }
   
    Map<String, Object> map = new HashMap<String, Object>();
    map.put("root", rootMenu);
    String result = null;
View Full Code Here

Examples of com.exedosoft.plat.ui.jquery.menu.data.ZTreeMenu

    return result;
  }
 
  @SuppressWarnings("unchecked")
  private ZTreeMenu createZTreeMenu(DOMenuModel item){
    ZTreeMenu menu = new ZTreeMenu();
    menu.setName(item.getL10n());
    List<DOMenuModel> children = item.retrieveChildren();
    if (children != null && !children.isEmpty()) {
      menu.initChild();
      for(DOMenuModel itemChild : children){
        menu.addChild(createZTreeMenu(itemChild));
      }
    }
    if (item.getLinkPane() != null || item.getLinkService()!=null) {
      StringBuffer buffer = new StringBuffer();
      this.appendLink(buffer, item, item.getEchoJs());
      menu.setDesc(buffer.toString());
    }
    if(item.getIcon()!=null){
      menu.setIcon(item.getIcon());
      if(item.getTemplate()!=null)
        menu.setTemplate(item.getTemplate());
    }
    return menu;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.