Package com.liferay.faces.portal.component.navitem

Examples of com.liferay.faces.portal.component.navitem.NavItem


    // using a prototype child tab.
    Nav nav = (Nav) uiComponent;
    Object value = nav.getValue();
    String var = nav.getVar();
    boolean iterateOverDataModel = ((value != null) && (var != null));
    NavItem prototypeChildNavItem = null;

    if (uiComponent instanceof Nav) {
      prototypeChildNavItem = getFirstChildNavItem(nav);
    }

    // Encode the content for each tab.
    if ((iterateOverDataModel) && (prototypeChildNavItem != null)) {
      int rowCount = nav.getRowCount();

      for (int i = 0; i < rowCount; i++) {
        nav.setRowIndex(i);
        prototypeChildNavItem.encodeAll(facesContext);
      }
    }
    else {
      List<UIComponent> children = nav.getChildren();
View Full Code Here


    return childNavItems;
  }

  public NavItem getFirstChildNavItem(UIData uiData) {

    NavItem prototypeChildType = null;

    List<NavItem> childNavItems = getChildNavItems(uiData);

    if (childNavItems.size() > 0) {
      prototypeChildType = childNavItems.get(0);
View Full Code Here

TOP

Related Classes of com.liferay.faces.portal.component.navitem.NavItem

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.