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, encodeMenuItem, encodeOverlayConfig, getLinkStyleClass, getRendersChildren, shouldRenderId
      • Methods inherited from class org.primefaces.renderkit.MenuItemAwareRenderer

        decode, decodeDynamicMenuItem, encodeOnClick, findMenuItemByCoordinates, findMenuItemById, setConfirmationScript
      • Methods inherited from class org.primefaces.renderkit.OutcomeTargetRenderer

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

        buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderAttribute, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, 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