org.apache.myfaces.custom.tabbedpane
Class HtmlTabbedPaneRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
          extended by org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer

public class HtmlTabbedPaneRenderer
extends HtmlRenderer

Version:
$Revision: 783584 $ $Date: 2009-06-10 19:00:13 -0500 (Wed, 10 Jun 2009) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

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)
           
protected  java.lang.String getDefaultActiveHeaderStyleClass(HtmlPanelTabbedPane tabbedPane, javax.faces.context.FacesContext facesContext)
           
protected  java.lang.String getHeaderCellID(HtmlPanelTab tab, javax.faces.context.FacesContext facesContext)
           
protected  java.lang.String getHeaderCellsIDsVar(HtmlPanelTabbedPane tabbedPane, javax.faces.context.FacesContext facesContext)
           
protected  java.lang.String getHeaderClasses(HtmlPanelTabbedPane tabbedPane, HtmlPanelTab tab, java.lang.String defaultClass, java.lang.String userClass)
           
 boolean getRendersChildren()
           
protected  java.lang.String getTabIndexSubmitFieldIDAndName(HtmlPanelTabbedPane tabbedPane, javax.faces.context.FacesContext facesContext)
           
protected  java.lang.String getTableStylableId(HtmlPanelTabbedPane tabbedPane, javax.faces.context.FacesContext facesContext)
          As the colon (:) can't be used in CSS, transforms the id to make it safe to use for CSS.
protected  java.lang.String getTabsIDsVar(HtmlPanelTabbedPane tabbedPane, javax.faces.context.FacesContext facesContext)
           
protected  boolean isDisabled(javax.faces.context.FacesContext facesContext, HtmlPanelTab tab)
           
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, int visibleTabIndex, boolean active, boolean disabled)
           
protected  void writeSubHeaderCells(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane, int visibleTabCount, int visibleTabSelectedIndex)
           
protected  void writeTableStart(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane)
           
protected  void writeTabsContents(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, HtmlPanelTabbedPane tabbedPane, int selectedIndex)
           
 
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri
 
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
Throws:
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 javax.faces.render.Renderer
Throws:
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
Throws:
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
Throws:
java.io.IOException

getHeaderCellsIDsVar

protected java.lang.String getHeaderCellsIDsVar(HtmlPanelTabbedPane tabbedPane,
                                                javax.faces.context.FacesContext facesContext)

getTabsIDsVar

protected java.lang.String getTabsIDsVar(HtmlPanelTabbedPane tabbedPane,
                                         javax.faces.context.FacesContext facesContext)

getDefaultActiveHeaderStyleClass

protected java.lang.String getDefaultActiveHeaderStyleClass(HtmlPanelTabbedPane tabbedPane,
                                                            javax.faces.context.FacesContext facesContext)

getHeaderClasses

protected java.lang.String getHeaderClasses(HtmlPanelTabbedPane tabbedPane,
                                            HtmlPanelTab tab,
                                            java.lang.String defaultClass,
                                            java.lang.String userClass)

writeTableStart

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

getTableStylableId

protected java.lang.String getTableStylableId(HtmlPanelTabbedPane tabbedPane,
                                              javax.faces.context.FacesContext facesContext)
As the colon (:) can't be used in CSS, transforms the id to make it safe to use for CSS.


getTabIndexSubmitFieldIDAndName

protected java.lang.String getTabIndexSubmitFieldIDAndName(HtmlPanelTabbedPane tabbedPane,
                                                           javax.faces.context.FacesContext facesContext)

getHeaderCellID

protected java.lang.String getHeaderCellID(HtmlPanelTab tab,
                                           javax.faces.context.FacesContext facesContext)

writeHeaderCell

protected void writeHeaderCell(javax.faces.context.ResponseWriter writer,
                               javax.faces.context.FacesContext facesContext,
                               HtmlPanelTabbedPane tabbedPane,
                               HtmlPanelTab tab,
                               int tabIndex,
                               int visibleTabIndex,
                               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)
                            throws java.io.IOException
Throws:
java.io.IOException

writeTabsContents

protected void writeTabsContents(javax.faces.context.ResponseWriter writer,
                                 javax.faces.context.FacesContext facesContext,
                                 HtmlPanelTabbedPane tabbedPane,
                                 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,
                             HtmlPanelTab tab)


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.