org.apache.myfaces.custom.tabbedpane
Class HtmlTabbedPaneRenderer

java.lang.Object
  |
  +--javax.faces.render.Renderer
        |
        +--org.apache.myfaces.renderkit.html.HtmlRenderer
              |
              +--org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer

public class HtmlTabbedPaneRenderer
extends HtmlRenderer

Version:
$Revision: 1.10 $ $Date: 2005/02/16 00:50:37 $ $Log: HtmlTabbedPaneRenderer.java,v $ Revision 1.10 2005/02/16 00:50:37 oros SF issue #1043331: replaced all   by the corresponding numeric entity   so safari users will be happy, too, with MyFaces output Revision 1.9 2005/02/11 16:03:00 mmarinschek solve bug in tabbed panel when datatable was displayed not on tab, but at the bottom of the datatable... Revision 1.8 2005/01/24 12:20:11 mmarinschek Changed the TabbedPane component to only decode components which are on the visible tags - other components are not processed in the decode phase. Changed the HtmlRendererUtils back to submit empty strings for components which should be posted back but have null values. 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
Overrides:
encodeBegin in class javax.faces.render.Renderer
java.io.IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

encodeChildren

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

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
java.io.IOException

decode

public void decode(javax.faces.context.FacesContext facesContext,
                   javax.faces.component.UIComponent uiComponent)
Overrides:
decode in class javax.faces.render.Renderer

writeFormStart

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

writeTableStart

protected void writeTableStart(javax.faces.context.ResponseWriter writer,
                               javax.faces.context.FacesContext facesContext,
                               HtmlPanelTabbedPane tabbedPane)
                        throws java.io.IOException
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
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
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
java.io.IOException

writeFormEnd

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

isDisabled

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