|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
com.sun.rave.web.ui.renderer.AbstractRenderer
com.sun.rave.web.ui.renderer.TabSetRenderer
public class TabSetRenderer
Renders a TabSet component.
Field Summary |
---|
Fields inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer |
---|
BUNDLE, EVENTS_ATTRIBUTES, I18N_ATTRIBUTES |
Constructor Summary | |
---|---|
TabSetRenderer()
Default constructor |
Method Summary | |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Encode the Tab children of this TabSet component. |
boolean |
getRendersChildren()
Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. |
protected boolean |
isSelected(Tab tab,
java.lang.String selectedTabId)
Recursive function that determines if the given Tab component or any one of its descendants is the selected tab. |
void |
renderEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.context.ResponseWriter writer)
Render the element end for the generated markup related to this component. |
protected java.util.List |
renderLevel(javax.faces.context.FacesContext context,
TabSet tabSet,
javax.faces.context.ResponseWriter writer,
int level,
java.util.List currentLevelTabs)
This method renders each of the Tab components in the given level. |
protected void |
writeDivider(TabSet tabSet,
javax.faces.context.ResponseWriter writer,
java.lang.String src)
Helper function to write a tab dividier in a table cell |
Methods inherited from class com.sun.rave.web.ui.renderer.AbstractRenderer |
---|
addBooleanAttributes, addCoreAttributes, addIntegerAttributes, addStringAttributes, decode, encodeBegin, encodeEnd, getApplication, getAsObject, getAsString, getExternalContext, getFacesContext, getSubmittedValue, isDisabled, isPortlet, isReadOnly, renderAttributes, renderMarkup, renderStart, setSubmittedValue |
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 |
---|
public TabSetRenderer()
Method Detail |
---|
public boolean getRendersChildren()
Return a flag indicating whether this Renderer is responsible
for rendering the children the component it is asked to render.
The default implementation returns false
.
getRendersChildren
in class javax.faces.render.Renderer
public void renderEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.context.ResponseWriter writer) throws java.io.IOException
AbstractRenderer
Render the element end for the generated markup related to this
component. Simple renderers that create a single markup element
for this component should override this method and include a call
to endElement()
on the specified
ResponseWriter
.
The default implementation does nothing.
renderEnd
in class AbstractRenderer
context
- FacesContext
for the current requestcomponent
- EditableValueHolder
component whose
submitted value is to be storedwriter
- ResponseWriter
to which the element
start should be rendered
java.io.IOException
- if an input/output error occurspublic void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
Encode the Tab children of this TabSet component.
encodeChildren
in class AbstractRenderer
context
- The current FacesContextcomponent
- The current TabSet component
java.io.IOException
- if an input/output error occursprotected java.util.List renderLevel(javax.faces.context.FacesContext context, TabSet tabSet, javax.faces.context.ResponseWriter writer, int level, java.util.List currentLevelTabs) throws java.io.IOException
context
- The current FacesContexttabSet
- The current TabSet componentwriter
- The current ResponseWriterlevel
- The level (1, 2 or 3) of the Tab set to be renderedcurrentLevelTabs
- A List containing the Tab objects for the current
level
java.io.IOException
protected void writeDivider(TabSet tabSet, javax.faces.context.ResponseWriter writer, java.lang.String src) throws java.io.IOException
tabSet
- The current TabSet componentwriter
- The current ResponseWritersrc
- The image src to use for the tab divider
java.io.IOException
protected boolean isSelected(Tab tab, java.lang.String selectedTabId)
tab
- The Tab component to check for selectionselectedTabId
- The id of the currently selected Tab
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |