Examples of BreadCrumbItem


Examples of org.wso2.carbon.ui.deployment.beans.BreadCrumbItem

    int tokenCount = st.countTokens();
    int count = 0;
    while (st.hasMoreTokens()) {
      count++;
      String token = st.nextToken();
      BreadCrumbItem breadcrumbItem = (BreadCrumbItem) breadcrumbs.get(token);
      if (breadcrumbItem != null) {
        //if (count == tokenCount) {
        //  content.append("<td class=\"breadcrumb-current-page\"><a href=\""+breadcrumbItem.getLink()+"\">"+breadcrumbItem.getConvertedText()+"</a></td>");
        //} else {
          if (breadcrumbItem.getLink().startsWith("#")) {
            content.append("<td class=\"breadcrumb-link\">"+"&nbsp;>&nbsp;"+breadcrumbItem.getConvertedText()+"</td>");
          } else {
            if(count == tokenCount && (clickFromMenu)){//if last breadcrumb item, do not put the link
              content.append("<td class=\"breadcrumb-link\">&nbsp;>&nbsp;"+breadcrumbItem.getConvertedText()+"</td>");
            }else{
              content.append("<td class=\"breadcrumb-link\">&nbsp;>&nbsp;<a href=\""+breadcrumbItem.getLink()+"\">"+breadcrumbItem.getConvertedText()+"</a></td>");
            }
          }
        //}
      }
    }
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.