org.apache.myfaces.custom.tabbedpane
Class HtmlTabbedPaneRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
org.apache.myfaces.custom.tabbedpane.HtmlTabbedPaneRenderer
- All Implemented Interfaces:
- EventListener, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener
public class HtmlTabbedPaneRenderer
- extends HtmlRenderer
- implements javax.faces.event.ComponentSystemEventListener
- Version:
- $Revision: 783584 $ $Date: 2009-06-10 19:00:13 -0500 (miƩ, 10 jun 2009) $
- Author:
- Manfred Geiler (latest modification by $Author: lu4242 $)
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 String |
getDefaultActiveHeaderStyleClass(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
|
protected String |
getHeaderCellID(HtmlPanelTab tab,
javax.faces.context.FacesContext facesContext)
|
protected String |
getHeaderCellsIDsVar(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
|
protected String |
getHeaderClasses(HtmlPanelTabbedPane tabbedPane,
HtmlPanelTab tab,
String defaultClass,
String userClass)
|
boolean |
getRendersChildren()
|
protected String |
getTabIndexSubmitFieldIDAndName(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
|
protected 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 String |
getTabsIDsVar(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
|
protected boolean |
isDisabled(javax.faces.context.FacesContext facesContext,
HtmlPanelTab tab)
|
void |
processEvent(javax.faces.event.ComponentSystemEvent event)
|
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 javax.faces.render.Renderer |
convertClientId, getConvertedValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlTabbedPaneRenderer
public HtmlTabbedPaneRenderer()
processEvent
public void processEvent(javax.faces.event.ComponentSystemEvent event)
- Specified by:
processEvent
in interface javax.faces.event.ComponentSystemEventListener
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws IOException
- Overrides:
encodeBegin
in class javax.faces.render.Renderer
- Throws:
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 IOException
- Overrides:
encodeChildren
in class javax.faces.render.Renderer
- Throws:
IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws IOException
- Overrides:
encodeEnd
in class javax.faces.render.Renderer
- Throws:
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 IOException
- Throws:
IOException
getHeaderCellsIDsVar
protected String getHeaderCellsIDsVar(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
getTabsIDsVar
protected String getTabsIDsVar(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
getDefaultActiveHeaderStyleClass
protected String getDefaultActiveHeaderStyleClass(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
getHeaderClasses
protected String getHeaderClasses(HtmlPanelTabbedPane tabbedPane,
HtmlPanelTab tab,
String defaultClass,
String userClass)
writeTableStart
protected void writeTableStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
HtmlPanelTabbedPane tabbedPane)
throws IOException
- Throws:
IOException
getTableStylableId
protected 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 String getTabIndexSubmitFieldIDAndName(HtmlPanelTabbedPane tabbedPane,
javax.faces.context.FacesContext facesContext)
getHeaderCellID
protected 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 IOException
- Throws:
IOException
writeSubHeaderCells
protected void writeSubHeaderCells(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
HtmlPanelTabbedPane tabbedPane,
int visibleTabCount,
int visibleTabSelectedIndex)
throws IOException
- Throws:
IOException
writeTabsContents
protected void writeTabsContents(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
HtmlPanelTabbedPane tabbedPane,
int selectedIndex)
throws IOException
- Throws:
IOException
writeFormEnd
protected void writeFormEnd(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext)
throws IOException
- Throws:
IOException
isDisabled
protected boolean isDisabled(javax.faces.context.FacesContext facesContext,
HtmlPanelTab tab)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.