Package com.jada.content.data

Examples of com.jada.content.data.MenuInfo


    data += "<div class=\"bd\" " + align + " >";
    data += "<ul class=\"first-of-type\">";
    int counter = 0;
    Iterator<?> iterator = vector.iterator();
    while (iterator.hasNext()) {
      MenuInfo menuInfo = (MenuInfo) iterator.next();
      String anchor = "";
      if (menuInfo.getMenuType().equals(Constants.MENU_NOOPERATION)) {
        anchor = "<span class=\"" + anchorstyle + "\">" + menuInfo.getMenuName() + "</span>";
      }
      else {
        anchor = "<a href=\"" + menuInfo.getMenuUrl() + "\" " +
             "class=\"" + anchorstyle + "\" " +
                   "onclick=\"javascrpt:window.open('" + menuInfo.getMenuUrl() + "', " + "'" + menuInfo.getMenuWindowTarget() + "' ";
        if (menuInfo.getMenuWindowMode().trim().length() != 0) {
          anchor += ", '" + menuInfo.getMenuWindowMode() + "'";
        }
        anchor += ");return false;\">";
        anchor += menuInfo.getMenuName();
        anchor += "</a>";
      }

      if (level == 0) {
        data += "<li class=\"" + listyle + "\" class=\"first-of-type\">" + anchor + "";
      }
      else {
        data += "<li class=\"" + listyle + "\">" + anchor + "";
      }
      if (menuInfo.getMenus().size() > 0) {
        vertical = true;
        data += generateMenuItem(menuInfo.getMenus(), id + counter, vertical, level + 1, styleClassSuffix) + "";
      }
      data += "</li>";
      counter++;
    }
    data += "</ul>";
View Full Code Here

TOP

Related Classes of com.jada.content.data.MenuInfo

Copyright © 2018 www.massapicom. 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.