| com.sun.rave.web.ui.renderer.AbstractRenderer com.sun.rave.web.ui.renderer.TabSetRenderer
TabSetRenderer | public class TabSetRenderer extends AbstractRenderer (Code) | | Renders a TabSet component.
author: Sean Comerford |
Method Summary | |
public void | encodeChildren(FacesContext context, UIComponent component) | public 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, String selectedTabId) Recursive function that determines if the given Tab component or any one
of its descendants is the selected tab. | public void | renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) | protected List | renderLevel(FacesContext context, TabSet tabSet, ResponseWriter writer, int level, List currentLevelTabs) This method renders each of the Tab components in the given level. | protected void | writeDivider(TabSet tabSet, ResponseWriter writer, String src) |
TabSetRenderer | public TabSetRenderer()(Code) | | Default constructor
|
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code) | | Encode the Tab children of this TabSet component.
Parameters: context - The current FacesContext Parameters: component - The current TabSet component |
getRendersChildren | public boolean getRendersChildren()(Code) | | 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 .
|
isSelected | protected boolean isSelected(Tab tab, String selectedTabId)(Code) | | Recursive function that determines if the given Tab component or any one
of its descendants is the selected tab.
Parameters: tab - The Tab component to check for selection Parameters: selectedTabId - The id of the currently selected Tab |
renderEnd | public void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | |
renderLevel | protected List renderLevel(FacesContext context, TabSet tabSet, ResponseWriter writer, int level, List currentLevelTabs) throws IOException(Code) | | This method renders each of the Tab components in the given level.
Parameters: context - The current FacesContext Parameters: tabSet - The current TabSet component Parameters: writer - The current ResponseWriter Parameters: level - The level (1, 2 or 3) of the Tab set to be rendered Parameters: currentLevelTabs - A List containing the Tab objects for the currentlevel |
writeDivider | protected void writeDivider(TabSet tabSet, ResponseWriter writer, String src) throws IOException(Code) | | Helper function to write a tab dividier in a table cell
Parameters: tabSet - The current TabSet component Parameters: writer - The current ResponseWriter Parameters: src - The image src to use for the tab divider |
Methods inherited from com.sun.rave.web.ui.renderer.AbstractRenderer | protected void addBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) protected void addCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) throws IOException(Code)(Java Doc) protected void addIntegerAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) protected static void addStringAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) public void decode(FacesContext context, UIComponent component)(Code)(Java Doc) public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) protected Application getApplication()(Code)(Java Doc) protected Object getAsObject(FacesContext context, UIComponent component, String value)(Code)(Java Doc) protected String getAsString(FacesContext context, UIComponent component)(Code)(Java Doc) protected ExternalContext getExternalContext()(Code)(Java Doc) protected FacesContext getFacesContext()(Code)(Java Doc) protected Object getSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc) protected boolean isDisabled(UIComponent component)(Code)(Java Doc) protected boolean isPortlet(FacesContext context)(Code)(Java Doc) protected boolean isReadOnly(UIComponent component)(Code)(Java Doc) protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) throws IOException(Code)(Java Doc) protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void setSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc)
|
|
|