| com.sun.rave.web.ui.renderer.TableRowGroupRenderer
TableRowGroupRenderer | public class TableRowGroupRenderer extends Renderer (Code) | | This class renders TableRowGroup components.
The TableRowGroup component provides a layout mechanism for displaying rows
of data. UI guidelines describe specific behavior that can applied to the
rows and columns of data such as sorting, filtering, pagination, selection,
and custom user actions. In addition, UI guidelines also define sections of
the table that can be used for titles, row group headers, and placement of
pre-defined and user defined actions.
Note: Column headers and footers are rendered by TableRowGroupRenderer. Table
column footers are rendered by TableRenderer.
Note: To see the messages logged by this class, set the following global
defaults in your JDK's "jre/lib/logging.properties" file.
java.util.logging.ConsoleHandler.level = FINE
com.sun.rave.web.ui.renderer.TableRowGroupRenderer.level = FINE
See TLD docs for more information.
|
Method Summary | |
public void | encodeBegin(FacesContext context, UIComponent component) Render the beginning of the specified UIComponent to the output stream or
writer associated with the response we are creating. | public void | encodeChildren(FacesContext context, UIComponent component) Render the children of the specified UIComponent to the output stream or
writer associated with the response we are creating. | public void | encodeEnd(FacesContext context, UIComponent component) Render the ending of the specified UIComponent to the output stream or
writer associated with the response we are creating. | public boolean | getRendersChildren() Return a flag indicating whether this Renderer is responsible
for rendering the children the component it is asked to render. | protected void | renderColumnFooters(FacesContext context, TableRowGroup component, ResponseWriter writer) Render column footers for TableRowGroup components.
Note: Although not currently a requirement, nested TableColumn children
could render column footers that look like:
| | 1 | 2 | | 3 | 4 | 5 | 6 | |
| A | B | C | D | E |
In this case, components would be rendered on separate rows. | protected void | renderColumnHeaders(FacesContext context, TableRowGroup component, ResponseWriter writer) Render column headers for TableRowGroup components.
Note: Although not typical, nested TableColumn children may render column
headers that look like:
| A | B | C | D | E |
| | 1 | 2 | | 3 | 4 | 5 | 6 | |
In this case, components would be rendered on separate rows. | protected void | renderEmptyDataColumn(FacesContext context, TableRowGroup component, ResponseWriter writer) Render empty data message for TableRowGroup components. | protected void | renderEnclosingTagEnd(ResponseWriter writer) Render enclosing tag for TableRowGroup components. | protected void | renderEnclosingTagStart(FacesContext context, TableRowGroup component, ResponseWriter writer, int index) Render enclosing tag for TableRowGroup components. | protected void | renderGroupFooter(FacesContext context, TableRowGroup component, ResponseWriter writer) Render group footer for TableRowGroup components. | protected void | renderGroupHeader(FacesContext context, TableRowGroup component, ResponseWriter writer) Render group header for TableRowGroup components. | protected void | renderTableColumnFooters(FacesContext context, TableRowGroup component, ResponseWriter writer) Render table column footers for TableRowGroup components.
Note: Although not currently a requirement, nested TableColumn children
could render column footers that look like:
| | 1 | 2 | | 3 | 4 | 5 | 6 | |
| A | B | C | D | E |
In this case, components would be rendered on separate rows. |
encodeBegin | public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code) | | Render the beginning of the specified UIComponent to the output stream or
writer associated with the response we are creating.
Parameters: context - FacesContext for the current request. Parameters: component - UIComponent to be rendered. exception: IOException - if an input/output error occurs. exception: NullPointerException - if context or component is null. |
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code) | | Render the children of the specified UIComponent to the output stream or
writer associated with the response we are creating.
Parameters: context - FacesContext for the current request. Parameters: component - UIComponent to be decoded. exception: IOException - if an input/output error occurs. exception: NullPointerException - if context or component is null. |
encodeEnd | public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code) | | Render the ending of the specified UIComponent to the output stream or
writer associated with the response we are creating.
Parameters: context - FacesContext for the current request. Parameters: component - UIComponent to be rendered. exception: IOException - if an input/output error occurs. exception: NullPointerException - if context or component is null. |
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.
|
renderColumnFooters | protected void renderColumnFooters(FacesContext context, TableRowGroup component, ResponseWriter writer) throws IOException(Code) | | Render column footers for TableRowGroup components.
Note: Although not currently a requirement, nested TableColumn children
could render column footers that look like:
| | 1 | 2 | | 3 | 4 | 5 | 6 | |
| A | B | C | D | E |
In this case, components would be rendered on separate rows. For example,
the HTML would look like:
However, the current implementation will render only the first row, which
would look like:
| A | 1 | 2 | C | 3 | 4 | 5 | 6 | E |
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
renderColumnHeaders | protected void renderColumnHeaders(FacesContext context, TableRowGroup component, ResponseWriter writer) throws IOException(Code) | | Render column headers for TableRowGroup components.
Note: Although not typical, nested TableColumn children may render column
headers that look like:
| A | B | C | D | E |
| | 1 | 2 | | 3 | 4 | 5 | 6 | |
In this case, components would be rendered on separate rows. For example,
the HTML would look like:
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
renderEmptyDataColumn | protected void renderEmptyDataColumn(FacesContext context, TableRowGroup component, ResponseWriter writer) throws IOException(Code) | | Render empty data message for TableRowGroup components.
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
renderEnclosingTagEnd | protected void renderEnclosingTagEnd(ResponseWriter writer) throws IOException(Code) | | Render enclosing tag for TableRowGroup components.
Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
renderEnclosingTagStart | protected void renderEnclosingTagStart(FacesContext context, TableRowGroup component, ResponseWriter writer, int index) throws IOException(Code) | | Render enclosing tag for TableRowGroup components.
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. Parameters: index - The current row index. exception: IOException - if an input/output error occurs. |
renderGroupFooter | protected void renderGroupFooter(FacesContext context, TableRowGroup component, ResponseWriter writer) throws IOException(Code) | | Render group footer for TableRowGroup components.
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
renderGroupHeader | protected void renderGroupHeader(FacesContext context, TableRowGroup component, ResponseWriter writer) throws IOException(Code) | | Render group header for TableRowGroup components.
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
renderTableColumnFooters | protected void renderTableColumnFooters(FacesContext context, TableRowGroup component, ResponseWriter writer) throws IOException(Code) | | Render table column footers for TableRowGroup components.
Note: Although not currently a requirement, nested TableColumn children
could render column footers that look like:
| | 1 | 2 | | 3 | 4 | 5 | 6 | |
| A | B | C | D | E |
In this case, components would be rendered on separate rows. For example,
the HTML would look like:
However, the current implementation will render only the first row, which
would look like:
| A | 1 | 2 | C | 3 | 4 | 5 | 6 | E |
Parameters: context - FacesContext for the current request. Parameters: component - TableRowGroup to be rendered. Parameters: writer - ResponseWriter to which the component should be rendered. exception: IOException - if an input/output error occurs. |
|
|