|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.decorator.TableDecorator
public abstract class TableDecorator
| Field Summary | |
|---|---|
protected TableModel |
tableModel
The table model. |
| Constructor Summary | |
|---|---|
TableDecorator()
|
|
| Method Summary | |
|---|---|
java.lang.String |
addRowClass()
Call back to add an additional row class to the current row. |
java.lang.String |
addRowId()
Call back to allow setting an "id" attribute on a row. |
java.lang.String |
displayGroupedValue(java.lang.String cellValue,
short groupingStatus,
int columnNumber)
What value should I display in this cell? The default value for grouped columns is to not display any value if the cellValue has not changed on an interior iteration. |
void |
endOfGroup(java.lang.String value,
int groupThatHasEnded)
Called at the end of a group. |
protected java.lang.Object |
evaluate(java.lang.String propertyName)
Shortcut for evaluating properties in the current row object. |
void |
finish()
Called at the end of evaluation. |
java.lang.String |
finishRow()
Called at the end of a row. |
java.lang.Object |
getCurrentRowObject()
Get the object representing the current row. |
java.lang.Object |
getDecoratedObject()
returns the decorated object. |
int |
getListIndex()
Return the index in the full list (view index + offset). |
javax.servlet.jsp.PageContext |
getPageContext()
returns the page context. |
int |
getViewIndex()
Return the index in the displayed list. |
boolean |
hasGetterFor(java.lang.String propertyName)
Check if a getter exists for a given property. |
void |
init(javax.servlet.jsp.PageContext pageContext,
java.lang.Object decorated)
Deprecated. use #init(PageContext, Object, TableModel) |
void |
init(javax.servlet.jsp.PageContext pageContext,
java.lang.Object decorated,
TableModel tableModel)
Initialize the TableTecorator instance. |
void |
initRow(java.lang.Object rowObject,
int currentViewIndex,
int currentListIndex)
Initialize the current row. |
boolean |
isLastRow()
|
boolean |
searchGetterFor(java.lang.String propertyName)
Looks for a getter for the given property using introspection. |
void |
startOfGroup(java.lang.String value,
int group)
Indicates that we are begining a new group. |
java.lang.String |
startRow()
Called at the beginning of a row. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TableModel tableModel
| Constructor Detail |
|---|
public TableDecorator()
| Method Detail |
|---|
public final int getViewIndex()
public final int getListIndex()
public final java.lang.Object getCurrentRowObject()
public final void initRow(java.lang.Object rowObject,
int currentViewIndex,
int currentListIndex)
rowObject - object representing the current rowcurrentViewIndex - int index in the displayed listcurrentListIndex - int index in the original listpublic java.lang.String startRow()
public java.lang.String finishRow()
public void finish()
public java.lang.String addRowClass()
public java.lang.String addRowId()
public void startOfGroup(java.lang.String value,
int group)
value - of the current cellgroup - number of the current column
public void endOfGroup(java.lang.String value,
int groupThatHasEnded)
value - of the current cellgroupThatHasEnded - number of the current column
public java.lang.String displayGroupedValue(java.lang.String cellValue,
short groupingStatus,
int columnNumber)
cellValue - groupingStatus -
public boolean isLastRow()
protected java.lang.Object evaluate(java.lang.String propertyName)
propertyName - property to lookup in current row object. Can also be a nested or indexed property.
public void init(javax.servlet.jsp.PageContext pageContext,
java.lang.Object decorated)
pageContext - PageContextdecorated - decorated object (usually a list)init(PageContext, Object, TableModel)
public void init(javax.servlet.jsp.PageContext pageContext,
java.lang.Object decorated,
TableModel tableModel)
pageContext - PageContextdecorated - decorated object (usually a list)tableModel - table modelpublic javax.servlet.jsp.PageContext getPageContext()
public java.lang.Object getDecoratedObject()
public boolean hasGetterFor(java.lang.String propertyName)
propertyName - name of the property to check
public boolean searchGetterFor(java.lang.String propertyName)
propertyName - name of the property to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||