org.apache.myfaces.custom.tabbedpane
Class HtmlTabbedPaneRenderer

java.lang.Object
  extended byjavax.faces.render.Renderer
      extended byorg.apache.myfaces.renderkit.html.HtmlRenderer
          extended byorg.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer

public class HtmlTabbedPaneRenderer
extends HtmlRenderer

Version:
$Revision: 1.7 $ $Date: 2004/11/26 14:29:12 $ $Log: HtmlTabbedPaneRenderer.java,v $ Revision 1.7 2004/11/26 14:29:12 oros bug fix #1006636: VisibleOnUserRole attribute for x:panelTab tag Revision 1.6 2004/10/13 11:50:58 matze renamed packages to org.apache Revision 1.5 2004/08/09 10:52:25 manolito RFE #975649 - Enhance HtmlTabbedPaneRenderer (rendered attribute for TabbedPane component) Revision 1.4 2004/07/10 17:11:02 o_rossmueller added attributes activeTabStyleClass, inactiveTabStyleClass, activeSubStyleClass, inactiveSubStyleClass, tagContentStyleClass to overwrite style attributes using css Revision 1.3 2004/07/01 21:53:05 mwessendorf ASF switch Revision 1.2 2004/05/18 12:02:13 manolito getActionURL and getResourceURL must not call encodeActionURL or encodeResourceURL
Author:
Manfred Geiler (latest modification by $Author: oros $)

Constructor Summary
HtmlTabbedPaneRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeChildren(javax.faces.context.FacesContext facescontext, javax.faces.component.UIComponent uicomponent)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 boolean getRendersChildren()
           
protected  boolean isDisabled(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected  void writeFormEnd(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext)
           
protected  void writeFormStart(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent tabbedPane)
           
protected  void writeHeaderCell(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane, HtmlPanelTab tab, int tabIndex, boolean active, boolean disabled)
           
protected  void writeSubHeaderCells(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane, int visibleTabCount, int visibleTabSelectedIndex, boolean disabled)
           
protected  void writeTabCell(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane, int tabCount, int selectedIndex)
           
protected  void writeTableStart(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane)
           
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlTabbedPaneRenderer

public HtmlTabbedPaneRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent uiComponent)
                 throws java.io.IOException
Throws:
java.io.IOException

getRendersChildren

public boolean getRendersChildren()

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext facescontext,
                           javax.faces.component.UIComponent uicomponent)
                    throws java.io.IOException
Overrides:
encodeChildren in class HtmlRenderer
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws java.io.IOException
Throws:
java.io.IOException

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent uiComponent)

writeFormStart

protected void writeFormStart(javax.faces.context.ResponseWriter writer,
                              javax.faces.context.FacesContext facesContext,
                              javax.faces.component.UIComponent tabbedPane)
                       throws java.io.IOException
Throws:
java.io.IOException

writeTableStart

protected void writeTableStart(javax.faces.context.ResponseWriter writer,
                               javax.faces.context.FacesContext facesContext,
                               HtmlPanelTabbedPane tabbedPane)
                        throws java.io.IOException
Throws:
java.io.IOException

writeHeaderCell

protected void writeHeaderCell(javax.faces.context.ResponseWriter writer,
                               javax.faces.context.FacesContext facesContext,
                               HtmlPanelTabbedPane tabbedPane,
                               HtmlPanelTab tab,
                               int tabIndex,
                               boolean active,
                               boolean disabled)
                        throws java.io.IOException
Throws:
java.io.IOException

writeSubHeaderCells

protected void writeSubHeaderCells(javax.faces.context.ResponseWriter writer,
                                   javax.faces.context.FacesContext facesContext,
                                   HtmlPanelTabbedPane tabbedPane,
                                   int visibleTabCount,
                                   int visibleTabSelectedIndex,
                                   boolean disabled)
                            throws java.io.IOException
Throws:
java.io.IOException

writeTabCell

protected void writeTabCell(javax.faces.context.ResponseWriter writer,
                            javax.faces.context.FacesContext facesContext,
                            HtmlPanelTabbedPane tabbedPane,
                            int tabCount,
                            int selectedIndex)
                     throws java.io.IOException
Throws:
java.io.IOException

writeFormEnd

protected void writeFormEnd(javax.faces.context.ResponseWriter writer,
                            javax.faces.context.FacesContext facesContext)
                     throws java.io.IOException
Throws:
java.io.IOException

isDisabled

protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
                             javax.faces.component.UIComponent uiComponent)