Package org.primefaces.model.menu

Examples of org.primefaces.model.menu.MenuElement


        if(elementCount > 0) {           
            writer.startElement("ul", null);
       
            for(int i = 0; i < elementCount; i++) {
                MenuElement element = menuElements.get(i);

                if(element.isRendered() && element instanceof MenuItem) {
                    MenuItem item = (MenuItem) element;

                    //dont render chevron before home icon
                    if(i != 0) {
                        writer.startElement("li", null);
View Full Code Here


           
            int childIndex = Integer.parseInt(paths[0]);
            if(childIndex >= elements.size())
                return null;
           
            MenuElement childElement = elements.get(childIndex);

            if(paths.length == 1) {
                return (MenuItem) childElement;
            }
            else {
View Full Code Here

    protected void encodeElements(FacesContext context, Menu menu, List<MenuElement> elements) throws IOException{
    ResponseWriter writer = context.getResponseWriter();
        int elementCount = elements.size();
       
        for (int i = 0; i < elementCount; i++) {
            MenuElement element = elements.get(i);
           
            if(element.isRendered()) {               
                if(element instanceof MenuItem) {
                    writer.startElement("li", null);
                    encodeMenuItem(context, menu, (MenuItem) element);
                    writer.endElement("li");
                }
View Full Code Here

           
            int childIndex = Integer.parseInt(paths[0]);
            if(childIndex >= elements.size())
                return null;
           
            MenuElement childElement = elements.get(childIndex);

            if(paths.length == 1) {
                return (MenuItem) childElement;
            }
            else {
View Full Code Here

TOP

Related Classes of org.primefaces.model.menu.MenuElement

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.