org.richfaces.renderkit

## Class AbstractRowsRenderer

- java.lang.Object
- - javax.faces.render.Renderer
  - - org.richfaces.renderkit.RendererBase
    - - org.richfaces.renderkit.AbstractRowsRenderer

- All Implemented Interfaces:
    DataVisitor
  Direct Known Subclasses:
    DataGridRenderer, SortingFilteringRowsRenderer

      public abstract class AbstractRowsRenderer
      extends RendererBase
      implements DataVisitor

  Author:
    Anton Belevich

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractRowsRenderer()`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `abstract RowHolderBase` | `createRowHolder(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object[] options)`
    `protected void` | `doCleanup(javax.faces.context.FacesContext context, RowHolderBase rowHolder)`
    `protected void` | `doEncodeChildren(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)`
    `void` | `encodeFakeRow(javax.faces.context.FacesContext facesContext, RowHolderBase rowHolder)`
    `abstract void` | `encodeRow(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, RowHolderBase rowHolder)`
    `protected void` | `encodeRows(javax.faces.context.FacesContext facesContext, RowHolderBase rowHolder)`
    `protected String` | `get(javax.faces.context.FacesContext context, String key)`
    `protected String` | `getColumnClass(RowHolderBase rowHolder, int columnNumber)`
    `protected String[]` | `getColumnClasses(RowHolderBase rowHolder)`
    `boolean` | `getRendersChildren()`
    `protected String` | `getRowClass(RowHolderBase rowHolder)`
    `protected String` | `getRowClassAttribute(RowHolderBase rowHolder)`
    `protected String[]` | `getRowClasses(RowHolderBase rowHolder)`
    `DataVisitResult` | `process(javax.faces.context.FacesContext facesContext, Object rowKey, Object argument)` This method called back ( as visitor ) from `ExtendedDataModel.walk(FacesContext, DataVisitor, Range, Object)` for each row.
    `void` | `processRows(javax.faces.context.ResponseWriter writer, javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object[] options)`
    `protected void` | `put(javax.faces.context.FacesContext context, String key, String value)`
    `protected void` | `renderRowHandlers(javax.faces.context.FacesContext context, UIDataTableBase dataTable)`

    - ### Methods inherited from class org.richfaces.renderkit.RendererBase

      `concatClasses, concatStyles, decode, doDecode, doEncodeBegin, doEncodeEnd, encodeBegin, encodeChildren, encodeEnd, getComponentClass, getResourcePath, getSkin, getUtils, isAlreadyRendered, preDecode, preEncodeBegin, queueComponentEventForBehaviorEvent, renderChildren`

    - ### 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

    - #### AbstractRowsRenderer

          public AbstractRowsRenderer()

  - ### Method Detail

    - #### encodeRow

          public abstract void encodeRow(javax.faces.context.ResponseWriter writer,
                                         javax.faces.context.FacesContext facesContext,
                                         RowHolderBase rowHolder)
                                  throws IOException

      Throws:
        `IOException`

    - #### createRowHolder

          public abstract RowHolderBase createRowHolder(javax.faces.context.FacesContext context,
                                                        javax.faces.component.UIComponent component,
                                                        Object[] options)

    - #### process

          public DataVisitResult process(javax.faces.context.FacesContext facesContext,
                                         Object rowKey,
                                         Object argument)

      Description copied from interface: `DataVisitor`
      This method called back ( as visitor ) from `ExtendedDataModel.walk(FacesContext, DataVisitor, Range, Object)` for each row.
      Specified by:
        `process` in interface `DataVisitor`
      Parameters:
        `facesContext` - current JSF context.
        `rowKey` - current row key of DataModel
        `argument` - Implementation-specific argument

    - #### encodeRows

          protected void encodeRows(javax.faces.context.FacesContext facesContext,
                                    RowHolderBase rowHolder)

    - #### encodeFakeRow

          public void encodeFakeRow(javax.faces.context.FacesContext facesContext,
                                    RowHolderBase rowHolder)
                             throws IOException

      Throws:
        `IOException`

    - #### renderRowHandlers

          protected void renderRowHandlers(javax.faces.context.FacesContext context,
                                           UIDataTableBase dataTable)
                                    throws IOException

      Throws:
        `IOException`

    - #### processRows

          public void processRows(javax.faces.context.ResponseWriter writer,
                                  javax.faces.context.FacesContext facesContext,
                                  javax.faces.component.UIComponent component,
                                  Object[] options)
                           throws IOException

      Throws:
        `IOException`

    - #### doCleanup

          protected void doCleanup(javax.faces.context.FacesContext context,
                                   RowHolderBase rowHolder)
                            throws IOException

      Throws:
        `IOException`

    - #### doEncodeChildren

          protected void doEncodeChildren(javax.faces.context.ResponseWriter writer,
                                          javax.faces.context.FacesContext facesContext,
                                          javax.faces.component.UIComponent component)
                                   throws IOException

      Overrides:
        `doEncodeChildren` in class `RendererBase`
      Throws:
        `IOException`

    - #### getRendersChildren

          public boolean getRendersChildren()

      Overrides:
        `getRendersChildren` in class `javax.faces.render.Renderer`

    - #### get

          protected String get(javax.faces.context.FacesContext context,
                               String key)

    - #### put

          protected void put(javax.faces.context.FacesContext context,
                             String key,
                             String value)

    - #### getRowClasses

          protected String[] getRowClasses(RowHolderBase rowHolder)

    - #### getColumnClasses

          protected String[] getColumnClasses(RowHolderBase rowHolder)

    - #### getColumnClass

          protected String getColumnClass(RowHolderBase rowHolder,
                                          int columnNumber)

    - #### getRowClassAttribute

          protected String getRowClassAttribute(RowHolderBase rowHolder)

    - #### getRowClass

          protected String getRowClass(RowHolderBase rowHolder)

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.