org.richfaces.renderkit
Class AbstractTableBaseRenderer
java.lang.Object
javax.faces.render.Renderer
org.richfaces.renderkit.RendererBase
org.richfaces.renderkit.AbstractRowsRenderer
org.richfaces.renderkit.SortingFilteringRowsRenderer
org.richfaces.renderkit.AbstractTableBaseRenderer
- All Implemented Interfaces:
- org.ajax4jsf.model.DataVisitor
- Direct Known Subclasses:
- AbstractTableRenderer, ColumnGroupRenderer
public abstract class AbstractTableBaseRenderer
- extends SortingFilteringRowsRenderer
- Author:
- Anton Belevich
Method Summary |
void |
encodeColumn(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIColumn component,
RowHolder rowHolder)
|
void |
encodeColumnEnd(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId)
|
void |
encodeColumnStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId,
javax.faces.component.UIComponent component)
|
void |
encodeFakeRow(javax.faces.context.FacesContext facesContext,
RowHolderBase rowHolder)
|
void |
encodeFirstRowEnd(javax.faces.context.ResponseWriter writer)
|
void |
encodeFirstRowStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId,
int currentRow,
javax.faces.component.UIComponent component)
|
void |
encodeRowEnd(javax.faces.context.ResponseWriter writer)
|
void |
encodeRowStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId,
int currentRow,
javax.faces.component.UIComponent component)
|
protected void |
encodeStyle(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String predefinedStyles)
|
void |
encodeStyleClass(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String styleClassAttribute,
java.lang.String styleClass)
|
protected java.lang.String |
getCellClass(javax.faces.context.FacesContext context,
java.lang.String id)
|
protected java.lang.String |
getCellElement(javax.faces.context.FacesContext context,
java.lang.String id)
|
protected int |
getColumnsCount(java.util.Iterator<javax.faces.component.UIComponent> col)
|
protected java.lang.String |
getFirstRowClass(javax.faces.context.FacesContext context,
java.lang.String id)
|
protected java.lang.String |
getRowClass(javax.faces.context.FacesContext context,
java.lang.String id)
|
protected boolean |
isEmpty(java.lang.String style)
|
protected boolean |
isEmptyAttr(javax.faces.component.UIComponent component,
java.lang.String attribute)
|
protected void |
saveRowStyles(javax.faces.context.FacesContext context,
java.lang.String id,
java.lang.String firstRowClass,
java.lang.String rowClass,
java.lang.String cellClass)
|
protected void |
setCellElement(javax.faces.context.FacesContext context,
java.lang.String id,
java.lang.String element)
|
Methods inherited from class org.richfaces.renderkit.AbstractRowsRenderer |
createRowHolder, doCleanup, doEncodeChildren, encodeRow, encodeRows, get, getColumnClass, getColumnClasses, getRendersChildren, getRowClass, getRowClassAttribute, getRowClasses, process, processRows, put, renderRowHandlers |
Methods inherited from class org.richfaces.renderkit.RendererBase |
concatClasses, concatStyles, decode, doDecode, doEncodeBegin, doEncodeEnd, encodeBegin, encodeChildren, encodeEnd, getComponentClass, getSkin, getUtils, 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 |
ROW_CLASS_KEY
public static final java.lang.String ROW_CLASS_KEY
- See Also:
- Constant Field Values
BREAK_ROW_BEFORE
public static final java.lang.String BREAK_ROW_BEFORE
- See Also:
- Constant Field Values
COLUMN_CLASS
public static final java.lang.String COLUMN_CLASS
- See Also:
- Constant Field Values
ROW_CLASS
public static final java.lang.String ROW_CLASS
- See Also:
- Constant Field Values
FIRST_ROW_CLASS_KEY
protected static final java.lang.String FIRST_ROW_CLASS_KEY
- See Also:
- Constant Field Values
CELL_CLASS_KEY
protected static final java.lang.String CELL_CLASS_KEY
- See Also:
- Constant Field Values
AbstractTableBaseRenderer
public AbstractTableBaseRenderer()
encodeColumn
public void encodeColumn(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIColumn component,
RowHolder rowHolder)
throws java.io.IOException
- Throws:
java.io.IOException
encodeColumnStart
public void encodeColumnStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Throws:
java.io.IOException
encodeColumnEnd
public void encodeColumnEnd(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId)
throws java.io.IOException
- Throws:
java.io.IOException
encodeFirstRowStart
public void encodeFirstRowStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId,
int currentRow,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Throws:
java.io.IOException
encodeFirstRowEnd
public void encodeFirstRowEnd(javax.faces.context.ResponseWriter writer)
throws java.io.IOException
- Throws:
java.io.IOException
encodeRowStart
public void encodeRowStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
java.lang.String parentId,
int currentRow,
javax.faces.component.UIComponent component)
throws java.io.IOException
- Throws:
java.io.IOException
encodeRowEnd
public void encodeRowEnd(javax.faces.context.ResponseWriter writer)
throws java.io.IOException
- Throws:
java.io.IOException
getFirstRowClass
protected java.lang.String getFirstRowClass(javax.faces.context.FacesContext context,
java.lang.String id)
getRowClass
protected java.lang.String getRowClass(javax.faces.context.FacesContext context,
java.lang.String id)
getCellClass
protected java.lang.String getCellClass(javax.faces.context.FacesContext context,
java.lang.String id)
getCellElement
protected java.lang.String getCellElement(javax.faces.context.FacesContext context,
java.lang.String id)
setCellElement
protected void setCellElement(javax.faces.context.FacesContext context,
java.lang.String id,
java.lang.String element)
saveRowStyles
protected void saveRowStyles(javax.faces.context.FacesContext context,
java.lang.String id,
java.lang.String firstRowClass,
java.lang.String rowClass,
java.lang.String cellClass)
encodeStyleClass
public void encodeStyleClass(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String styleClassAttribute,
java.lang.String styleClass)
throws java.io.IOException
- Throws:
java.io.IOException
isEmptyAttr
protected boolean isEmptyAttr(javax.faces.component.UIComponent component,
java.lang.String attribute)
encodeStyle
protected void encodeStyle(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String predefinedStyles)
throws java.io.IOException
- Throws:
java.io.IOException
isEmpty
protected boolean isEmpty(java.lang.String style)
getColumnsCount
protected int getColumnsCount(java.util.Iterator<javax.faces.component.UIComponent> col)
encodeFakeRow
public void encodeFakeRow(javax.faces.context.FacesContext facesContext,
RowHolderBase rowHolder)
throws java.io.IOException
- Overrides:
encodeFakeRow
in class AbstractRowsRenderer
- Throws:
java.io.IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.