Package com.jada.content.data

Examples of com.jada.content.data.MenuComponentInfo


  public String getPageItemCompareTitle() throws Exception {
    return siteName + " - " + getLanguageByValue("Item Compare");
  }
 
  public MenuComponentInfo getHorizontalMenu(String menuSetName, String styleClassSuffix) throws ResourceNotFoundException, ParseErrorException, Exception {
    MenuComponentInfo menuComponentInfo = new MenuComponentInfo();
    /* Generate unique id for yui's div.  Important when rendering 2 menus with the same menuSetName. */
    String menuDivId = ContentUtility.getNextMenuDivId(menuSetName);
    menuComponentInfo.setMenuDivId(menuDivId);
    boolean vertical = false;
    boolean customerSession = ContentLookupDispatchAction.isCustomerSession(request);
    String horizontalMenuCode = ContentUtility.generateMenu(api, menuSetName, menuDivId, vertical, customerSession, styleClassSuffix);
    menuComponentInfo.setMenuCode(horizontalMenuCode);
    return menuComponentInfo;
  }
View Full Code Here


    menuComponentInfo.setMenuCode(horizontalMenuCode);
    return menuComponentInfo;
  }
 
  public MenuComponentInfo getVerticalMenu(String menuSetName, String styleClassSuffix) throws ResourceNotFoundException, ParseErrorException, Exception  {
    MenuComponentInfo menuComponentInfo = new MenuComponentInfo();
    String menuDivId = ContentUtility.getNextMenuDivId(menuSetName);
    menuComponentInfo.setMenuDivId(menuDivId);
    boolean vertical = true;
    boolean customerSession = ContentLookupDispatchAction.isCustomerSession(request);
    String verticalMenuCode = ContentUtility.generateMenu(api, menuSetName, menuDivId, vertical, customerSession, styleClassSuffix);
    menuComponentInfo.setMenuCode(verticalMenuCode);
    return menuComponentInfo;
  }
View Full Code Here

TOP

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

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.