Class SerenityMenuRendererExtension


  • public class SerenityMenuRendererExtension
    extends org.primefaces.serenity.component.SerenityMenuRenderer
    Extends the serenity menu to provide support for icons from different icon fonts. Supports font awesome icons, material icons and FORMCYCLE font icons.
    Author:
    XIMA MEDIA GmbH
    • Field Summary

      • Fields inherited from class javax.faces.render.Renderer

        PASSTHROUGH_RENDERER_LOCALNAME_KEY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void encodeItemIcon​(javax.faces.context.FacesContext context, String icon)  
      protected void encodeToggleIcon​(javax.faces.context.FacesContext context, org.primefaces.model.menu.Submenu submenu, int childrenElementsCount)  
      • Methods inherited from class org.primefaces.serenity.component.SerenityMenuRenderer

        encodeBadge, encodeElement, encodeElements, encodeMarkup, encodeMenuItem, encodeMenuItemContent, encodeScript, encodeSeparator, encodeSubmenu
      • Methods inherited from class org.primefaces.component.menu.BaseMenuRenderer

        encodeChildren, encodeEnd, encodeKeyboardTarget, encodeMenuItem, encodeOverlayConfig, getLinkStyleClass, getRendersChildren, shouldRenderId
      • Methods inherited from class org.primefaces.renderkit.MenuItemAwareRenderer

        decode, encodeOnClick, findMenuitem, setConfirmationScript
      • Methods inherited from class org.primefaces.renderkit.OutcomeTargetRenderer

        containsEL, evaluateValueExpressions, findNavigationCase, getParams, getTargetURL, isExpression, isIncludeViewParams
      • Methods inherited from class org.primefaces.renderkit.CoreRenderer

        buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, escapeText, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
      • Methods inherited from class javax.faces.render.Renderer

        convertClientId, encodeBegin, getConvertedValue
    • Constructor Detail

      • SerenityMenuRendererExtension

        public SerenityMenuRendererExtension()
    • Method Detail

      • encodeItemIcon

        protected void encodeItemIcon​(javax.faces.context.FacesContext context,
                                      String icon)
                               throws IOException
        Overrides:
        encodeItemIcon in class org.primefaces.serenity.component.SerenityMenuRenderer
        Throws:
        IOException
      • encodeToggleIcon

        protected void encodeToggleIcon​(javax.faces.context.FacesContext context,
                                        org.primefaces.model.menu.Submenu submenu,
                                        int childrenElementsCount)
                                 throws IOException
        Overrides:
        encodeToggleIcon in class org.primefaces.serenity.component.SerenityMenuRenderer
        Throws:
        IOException