Class MenuListTag
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.empire.jsf2.components.MenuListTag
- 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
public class MenuListTag
extends javax.faces.component.UIOutput
implements TagEncodingHelperFactory.TagEncodingHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected final TagEncodingHelperprotected Stringprotected intprotected Stringprotected MenuListTagFields 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 TypeMethodDescriptionvoidencodeBegin(javax.faces.context.FacesContext context) voidencodeChildren(javax.faces.context.FacesContext context) voidencodeEnd(javax.faces.context.FacesContext context) protected MenuListTaggetAttribute(String attributeName) intgetLevel()final MenuListTagbooleanprotected voidbooleanprotected booleanReturns whether or not the MenuList should be rendered Override this to implement custom logicMethods 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, getClientId, 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, setId, 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, visitTree
-
Field Details
-
helper
-
parentMenu
-
currentId
-
currentClass
-
parentClass
-
disabledClass
-
expandedClass
-
itemWrapTag
-
defaultItemClass
-
level
protected int level
-
-
Constructor Details
-
MenuListTag
public MenuListTag()
-
-
Method Details
-
getFamily
- Overrides:
getFamilyin classjavax.faces.component.UIOutput
-
getEncodingHelper
- Specified by:
getEncodingHelperin interfaceTagEncodingHelperFactory.TagEncodingHolder
-
isRendered
public boolean isRendered()- Overrides:
isRenderedin classjavax.faces.component.UIComponentBase
-
encodeBegin
- Overrides:
encodeBeginin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()- Overrides:
getRendersChildrenin classjavax.faces.component.UIComponentBase
-
encodeChildren
- Overrides:
encodeChildrenin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
encodeEnd
- Overrides:
encodeEndin classjavax.faces.component.UIComponentBase- Throws:
IOException
-
getAttribute
-
getParentMenu
-
getCurrentItemId
-
getCurrentItemClass
-
getParentItemClass
-
getItemDisabledClass
-
getItemExpandedClass
-
getItemWrapperTagName
-
getLevel
public int getLevel() -
getMenuStyleClass
-
getItemStyleClass
-
isRenderList
protected boolean isRenderList()Returns whether or not the MenuList should be rendered Override this to implement custom logic- Returns:
- true if the menu item should be rendered or false otherwise
-
initMenuAttributes
protected void initMenuAttributes() -
findParentMenu
-