Class MenuItemTag
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.empire.jsf2.components.LinkTag
org.apache.empire.jsf2.components.MenuItemTag
- All Implemented Interfaces:
EventListener,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.component.ValueHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,TagEncodingHelperFactory.TagEncodingHolder
-
Field Summary
FieldsFields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPEFields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringappendStyleClass(String styleClass, String newClass) protected booleanvoidencodeBegin(javax.faces.context.FacesContext context) voidencodeChildren(javax.faces.context.FacesContext context) voidencodeEnd(javax.faces.context.FacesContext context) protected voidencodeLinkComponent(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink linkComponent) protected MenuListTagfinal ObjectgetAttribute(String attributeName) protected Stringprotected ObjectgetLinkValue(boolean hasColumn) Returns the menu item label Override this to e.g. provide the label from the PageDefinitionfinal Stringfinal PageDefinitionfinal MenuListTagbooleanprotected Stringbooleanprotected booleanisEncodeLinkChildren(Object linkValue) booleanfinal booleanbooleanisParent()booleanprotected booleanReturns whether or not the MenuItem should be rendered Override this to implement custom logicvoidMethods inherited from class org.apache.empire.jsf2.components.LinkTag
addOrSetParam, addOrSetParams, createOutcomeTargetLink, encodeImage, forceEncodeChildren, getClientId, getEncodingHelper, getLinkComponent, isLinkDisabled, setLinkProperties, visitTree, writeStartElementMethods inherited from class javax.faces.component.UIOutput
clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValueMethods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventMethods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
-
Field Details
-
parentMenu
-
-
Constructor Details
-
MenuItemTag
public MenuItemTag()
-
-
Method Details
-
getFamily
-
setId
-
isRendered
public boolean isRendered()- Overrides:
isRenderedin classjavax.faces.component.UIComponentBase
-
getMenuItemId
-
getParentMenu
-
getAttribute
-
getPageDefinition
-
encodeBegin
- Overrides:
encodeBeginin classLinkTag- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()- Overrides:
getRendersChildrenin classjavax.faces.component.UIComponentBase
-
encodeChildren
- Overrides:
encodeChildrenin classLinkTag- Throws:
IOException
-
encodeEnd
- Overrides:
encodeEndin classLinkTag- Throws:
IOException
-
getLinkStyleClass
- Overrides:
getLinkStyleClassin classLinkTag
-
findParentMenu
-
isCurrent
public boolean isCurrent() -
isParent
public boolean isParent() -
isItemDisabled
public boolean isItemDisabled() -
isItemExpanded
public final boolean isItemExpanded() -
isRenderItem
protected boolean isRenderItem()Returns whether or not the MenuItem should be rendered Override this to implement custom logic- Returns:
- true if the menu item should be rendered or false otherwise
-
detectItemExpanded
protected boolean detectItemExpanded() -
getStyleClass
-
appendStyleClass
-
isEncodeLinkChildren
- Overrides:
isEncodeLinkChildrenin classLinkTag
-
getLinkValue
Returns the menu item label Override this to e.g. provide the label from the PageDefinition- Overrides:
getLinkValuein classLinkTag- Returns:
- the menu item label
-
encodeLinkComponent
protected void encodeLinkComponent(javax.faces.context.FacesContext context, javax.faces.component.html.HtmlOutcomeTargetLink linkComponent) throws IOException - Overrides:
encodeLinkComponentin classLinkTag- Throws:
IOException
-