Package org.primefaces.renderkit
Class MenuItemAwareRenderer
java.lang.Object
javax.faces.render.Renderer
org.primefaces.renderkit.CoreRenderer
org.primefaces.renderkit.OutcomeTargetRenderer
org.primefaces.renderkit.MenuItemAwareRenderer
- Direct Known Subclasses:
BaseMenuRenderer
,SplitButtonRenderer
-
Field Summary
Fields inherited from class javax.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) protected boolean
decodeDynamicMenuItem
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) Decode menu item not present in JSF tree but added using model attribute.protected void
encodeOnClick
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, MenuItem menuitem) protected void
encodeSeparator
(javax.faces.context.FacesContext context, Separator separator) protected MenuItem
findMenuItemByCoordinates
(List<MenuElement> elements, String coords) protected MenuItem
findMenuItemById
(List<MenuElement> elements, String id) protected boolean
isMenuItemLink
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, MenuItem menuitem) protected boolean
isMenuItemSubmitting
(javax.faces.context.FacesContext context, javax.faces.component.UIComponent source, MenuItem menuitem) protected void
setConfirmationScript
(javax.faces.context.FacesContext context, MenuItem item) 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, encodeIndexedId, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getIconOnlyButtonText, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, logDevelopmentWarning, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderAttribute, renderButtonValue, 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, encodeChildren, encodeEnd, getConvertedValue, getRendersChildren
-
Constructor Details
-
MenuItemAwareRenderer
public MenuItemAwareRenderer()
-
-
Method Details
-
decode
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) - Overrides:
decode
in classjavax.faces.render.Renderer
-
findMenuItemById
-
findMenuItemByCoordinates
-
decodeDynamicMenuItem
protected boolean decodeDynamicMenuItem(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) Decode menu item not present in JSF tree but added using model attribute. ID is in format UUID|COORDS.- Parameters:
context
- the FacesContextcomponent
- the menu component- Returns:
- true if a menu item has been decoded, otherwise false
-