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

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    protected String
     
    protected String
     
    protected String
     
    protected String
     
    protected final TagEncodingHelper
     
    protected String
     
    protected int
     
    protected String
     
    protected MenuListTag
     

    Fields inherited from class javax.faces.component.UIOutput

    COMPONENT_FAMILY, COMPONENT_TYPE

    Fields 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    encodeBegin(javax.faces.context.FacesContext context)
     
    void
    encodeChildren(javax.faces.context.FacesContext context)
     
    void
    encodeEnd(javax.faces.context.FacesContext context)
     
    protected MenuListTag
     
    getAttribute(String attributeName)
     
     
     
     
     
     
     
     
     
    int
     
     
     
     
    boolean
     
    protected void
     
    boolean
     
    protected boolean
    Returns whether or not the MenuList should be rendered Override this to implement custom logic

    Methods inherited from class javax.faces.component.UIOutput

    clearInitialState, getConverter, getLocalValue, getValue, markInitialState, resetValue, restoreState, saveState, setConverter, setValue

    Methods 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, unsubscribeFromEvent

    Methods 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • helper

      protected final TagEncodingHelper helper
    • parentMenu

      protected MenuListTag parentMenu
    • currentId

      protected String currentId
    • currentClass

      protected String currentClass
    • parentClass

      protected String parentClass
    • disabledClass

      protected String disabledClass
    • expandedClass

      protected String expandedClass
    • itemWrapTag

      protected String itemWrapTag
    • defaultItemClass

      protected String defaultItemClass
    • level

      protected int level
  • Constructor Details

    • MenuListTag

      public MenuListTag()
  • Method Details

    • getFamily

      public String getFamily()
      Overrides:
      getFamily in class javax.faces.component.UIOutput
    • getEncodingHelper

      public TagEncodingHelper getEncodingHelper()
      Specified by:
      getEncodingHelper in interface TagEncodingHelperFactory.TagEncodingHolder
    • isRendered

      public boolean isRendered()
      Overrides:
      isRendered in class javax.faces.component.UIComponentBase
    • encodeBegin

      public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeBegin in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • getRendersChildren

      public boolean getRendersChildren()
      Overrides:
      getRendersChildren in class javax.faces.component.UIComponentBase
    • encodeChildren

      public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeChildren in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • encodeEnd

      public void encodeEnd(javax.faces.context.FacesContext context) throws IOException
      Overrides:
      encodeEnd in class javax.faces.component.UIComponentBase
      Throws:
      IOException
    • getAttribute

      public Object getAttribute(String attributeName)
    • getParentMenu

      public final MenuListTag getParentMenu()
    • getCurrentItemId

      public String getCurrentItemId()
    • getCurrentItemClass

      public String getCurrentItemClass()
    • getParentItemClass

      public String getParentItemClass()
    • getItemDisabledClass

      public String getItemDisabledClass()
    • getItemExpandedClass

      public String getItemExpandedClass()
    • getItemWrapperTagName

      public String getItemWrapperTagName()
    • getLevel

      public int getLevel()
    • getMenuStyleClass

      public String getMenuStyleClass()
    • getItemStyleClass

      public String 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

      protected MenuListTag findParentMenu()