Class TabViewTag

java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
org.apache.empire.jsf2.components.TabViewTag
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 TabViewTag extends javax.faces.component.UIOutput implements TagEncodingHelperFactory.TagEncodingHolder
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    TabPageActionListener
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final TagEncodingHelper
     
    protected static String
     
    protected static String
     
    protected static String
     
    protected static String
     
    protected static String
     

    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
    protected javax.faces.component.html.HtmlCommandLink
    createTabCommandLink(javax.faces.context.FacesContext context, TabPageTag pageTag, String linkId)
     
    void
    decode(javax.faces.context.FacesContext context)
     
    void
    encodeBegin(javax.faces.context.FacesContext context)
     
    void
    encodeChildren(javax.faces.context.FacesContext context)
     
    void
    encodeEnd(javax.faces.context.FacesContext context)
     
    protected void
    encodeTabCommandLink(javax.faces.context.FacesContext context, TabPageTag pageTag, javax.faces.component.html.HtmlCommandLink link)
     
    protected void
    encodeTabLink(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, int index, TabPageTag pageTag, boolean disabled, String showTabBlindJs)
     
    protected void
    encodeTabPadding(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer)
     
    protected void
    encodeTabs(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, String showTabBlindJs)
     
     
    int
     
     
     
     
    boolean
     
     
    protected boolean
     
    protected boolean
     
    void
    processDecodes(javax.faces.context.FacesContext context)
     
    void
    processUpdates(javax.faces.context.FacesContext context)
     
    void
    processValidators(javax.faces.context.FacesContext context)
     
    void
     
    void
    setActivePageIndex(int activeIndex)
     
    void
    setActiveTab(javax.faces.event.ActionEvent event)
     
    protected void
    setRenderTabs(javax.faces.context.FacesContext context)
     

    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, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, 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

    • TAB_PAGE_ID

      protected static String TAB_PAGE_ID
    • TAB_ACTIVE_PAGE

      protected static String TAB_ACTIVE_PAGE
    • TAB_ACTIVE_INDEX

      protected static String TAB_ACTIVE_INDEX
    • TAB_RENDERED_ATTRIBUTE

      protected static String TAB_RENDERED_ATTRIBUTE
    • helper

      protected final TagEncodingHelper helper
  • Constructor Details

    • TabViewTag

      public TabViewTag()
  • 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
    • getViewMode

      public TabViewTag.TabViewMode getViewMode()
    • getActivePageIndex

      public int getActivePageIndex()
    • setActivePageIndex

      public void setActivePageIndex(int activeIndex)
    • getActivePageId

      public String getActivePageId()
    • setActivePageId

      public void setActivePageId(String pageId)
    • getActiveTabPage

      public TabPageTag getActiveTabPage()
    • setActiveTab

      public void setActiveTab(javax.faces.event.ActionEvent event)
    • 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
    • decode

      public void decode(javax.faces.context.FacesContext context)
      Overrides:
      decode in class javax.faces.component.UIComponentBase
    • processDecodes

      public void processDecodes(javax.faces.context.FacesContext context)
      Overrides:
      processDecodes in class javax.faces.component.UIComponentBase
    • processValidators

      public void processValidators(javax.faces.context.FacesContext context)
      Overrides:
      processValidators in class javax.faces.component.UIComponentBase
    • processUpdates

      public void processUpdates(javax.faces.context.FacesContext context)
      Overrides:
      processUpdates in class javax.faces.component.UIComponentBase
    • encodeTabs

      protected void encodeTabs(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, String showTabBlindJs) throws IOException
      Throws:
      IOException
    • encodeTabLink

      protected void encodeTabLink(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer, int index, TabPageTag pageTag, boolean disabled, String showTabBlindJs) throws IOException
      Throws:
      IOException
    • createTabCommandLink

      protected javax.faces.component.html.HtmlCommandLink createTabCommandLink(javax.faces.context.FacesContext context, TabPageTag pageTag, String linkId)
    • encodeTabCommandLink

      protected void encodeTabCommandLink(javax.faces.context.FacesContext context, TabPageTag pageTag, javax.faces.component.html.HtmlCommandLink link) throws IOException
      Throws:
      IOException
    • encodeTabPadding

      protected void encodeTabPadding(javax.faces.context.FacesContext context, javax.faces.context.ResponseWriter writer) throws IOException
      Throws:
      IOException
    • setRenderTabs

      protected void setRenderTabs(javax.faces.context.FacesContext context)
    • isPageVisible

      protected boolean isPageVisible(TabPageTag page)
    • isPageDisabled

      protected boolean isPageDisabled(TabPageTag page)