| com.sun.rave.web.ui.renderer.AbstractRenderer com.sun.rave.web.ui.renderer.RowColumnRenderer
All known Subclasses: com.sun.rave.web.ui.renderer.SelectorGroupRenderer,
RowColumnRenderer | abstract class RowColumnRenderer extends AbstractRenderer (Code) | | RowColumnRenderer renders a HTML table.
The contents are rendered by a subclass during the
renderCellContent method, implemented in a subclass.
An example of the HTML produced when the subclass renderer
is a
RadionButtonGroup .
<table class=" RbGrp" style="">
<tbody>
<tr class="RbGrpRwOd">
<td class="RbGrpCpt">
<label class="RbGrpLbl" for="form1:_id1_0_input"
title="rbgrp-tooltip"
id="form1:_id1_caption">Radio Button Group</label>
</td>
<td class="RbGrpClEv">
<input tabindex="1" class="Rb"
value="Server" name="form1:_id1"
id="form1:_id1_0_input" type="radio">
<img class="RbImg" src="tree_server.gif" id="form1:_id1_0_image">
<label class="RbLbl LblLev3Txt" for="form1:_id1_0_input"
id="form1:_id1_0_label">Server</label>
</td>
<td class="RbGrpClOd">
<input tabindex="1" class="Rb"
value="Volume" name="form1:_id1"
id="form1:_id1_1_input" type="radio">
<img class="RbImg" src="volumegroup_tree.gif"
id="form1:_id1_1_image">
<label
class="RbLbl LblLev3Txt" for="form1:_id1_1_input"
id="form1:_id1_1_label">Volume</label>
</td>
</tr>
<tr class="RbGrpRwEv">
<td>
</td>
<td class="RbGrpClEv">
<input tabindex="1" class="Rb"
checked="checked" value="Pool" name="form1:_id1"
id="form1:_id1_2_input" type="radio">
<img class="RbImg" src="pool_tree.gif" id="form1:_id1_2_image">
<label class="RbLbl LblLev3Txt" for="form1:_id1_2_input"
id="form1:_id1_2_label">Pool</label>
</td>
<td class="RbGrpClEv">
</td>
</tr>
</tbody>
</table>
The style class selectors are not output by RowColumnRenderer
but by a subclass.
|
Field Summary | |
final protected static int | CAPTION_STYLE Constant indicating a TD element stlye is desired. | final protected static int | CELLEVEN_STYLE Constant indicating a TD element style selector is desired. | final protected static int | CELLODD_STYLE Constant indicating a TD element style selector is desired. | final protected static int | ROWEVEN_STYLE Constant indicating a TR element style selector is desired. | final protected static int | ROWODD_STYLE Constant indicating a TR element style selector is desired. | final protected static int | TABLE_STYLE Constant indicating a TABLE element style selector is desired. |
Method Summary | |
abstract protected String | getRowColumnStyle(Theme theme, int styleCode) Get the style class for a structural element of the table. | abstract protected void | renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) Implemented by a subclass. | abstract protected void | renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) Implemented by a subclass. | protected void | renderRowColumnLayout(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int rows, int columns) |
CAPTION_STYLE | final protected static int CAPTION_STYLE(Code) | | Constant indicating a TD element stlye is desired.
This selector is used for the TD element that contains
the group label.
|
CELLEVEN_STYLE | final protected static int CELLEVEN_STYLE(Code) | | Constant indicating a TD element style selector is desired.
The selector is applied to an even column.
|
CELLODD_STYLE | final protected static int CELLODD_STYLE(Code) | | Constant indicating a TD element style selector is desired.
The selector is applied to an odd column.
|
ROWEVEN_STYLE | final protected static int ROWEVEN_STYLE(Code) | | Constant indicating a TR element style selector is desired.
The selector is applied to an odd row.
|
ROWODD_STYLE | final protected static int ROWODD_STYLE(Code) | | Constant indicating a TR element style selector is desired.
The selector is applied to an even row.
|
TABLE_STYLE | final protected static int TABLE_STYLE(Code) | | Constant indicating a TABLE element style selector is desired.
|
RowColumnRenderer | public RowColumnRenderer()(Code) | | Create a RowColumnRenderer instance.
|
getRowColumnStyle | abstract protected String getRowColumnStyle(Theme theme, int styleCode)(Code) | | Get the style class for a structural element of the table.
styleCode is one of.
TABLE_STYLE
CAPTION_STYLE
ROWEVEN_STYLE
ROWODD_STYLE
CELLEVEN_STYLE
CELLODD_STYLE
Parameters: context - FacesContext for the current request Parameters: styleCode - one the predefined constants. |
renderCaption | abstract protected void renderCaption(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer) throws IOException(Code) | | Implemented by a subclass.
Called when the subclass should render the CAPTION element for
the table.
Parameters: context - FacesContext for the current request Parameters: component - component being rendered Parameters: writer - ResponseWriter to which the HTML is rendered |
renderCellContent | abstract protected void renderCellContent(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int itemN) throws IOException(Code) | | Implemented by a subclass.
Called when subclass should render the contents of the cell for the
itemN 'th renderer cell.
Parameters: context - FacesContext for the current request Parameters: component - component being rendered Parameters: writer - ResponseWriter to which the HTML is rendered Parameters: itemN - the nth cell to be rendered. |
renderRowColumnLayout | protected void renderRowColumnLayout(FacesContext context, UIComponent component, Theme theme, ResponseWriter writer, int rows, int columns) throws IOException(Code) | | Called from a subclass when rendering is to begin
Parameters: context - FacesContext for the current request Parameters: component - RadioButtonGroup component rendered Parameters: writer - ResponseWriter to which the HTML is rendered Parameters: rows - the number of rows to render Parameters: columns - the number of columns to render |
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)
|
|
|