Package org.primefaces.model.menu

Examples of org.primefaces.model.menu.MenuModel


    }
   
    @Override
  public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    AbstractMenu menu = (AbstractMenu) component;
        MenuModel model = menu.getModel();
        if(model != null && menu.getElementsCount() > 0) {
            model.generateUniqueIds();
        }

    encodeMarkup(context, menu);
    encodeScript(context, menu);
  }
View Full Code Here


  public void setTabindex(String tabindex) {
    getStateHelper().put(PropertyKeys.tabindex, tabindex);
  }
   
    public List getElements() {
        MenuModel model = getModel();
        if(model != null)
            return model.getElements();
        else
            return getChildren();
    }
View Full Code Here

    }
   
    @Override
  public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
    AbstractMenu menu = (AbstractMenu) component;
        MenuModel model = menu.getModel();
        if(model != null && menu.getElementsCount() > 0) {
            model.generateUniqueIds();
        }

    encodeMarkup(context, menu);
    encodeScript(context, menu);
  }
View Full Code Here

TOP

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

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.