|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tapestry.contrib.table.model.common.AbstractTableColumn | +--org.apache.tapestry.contrib.table.model.simple.SimpleTableColumn
A simple minimal implementation of the
ITableColumn
interface that
provides all the basic services for displaying a column.
Inner Class Summary | |
class |
SimpleTableColumn.DefaultTableComparator
|
Constructor Summary | |
SimpleTableColumn(String strColumnName)
Creates a SimpleTableColumn |
|
SimpleTableColumn(String strColumnName,
boolean bSortable)
Creates a SimpleTableColumn |
|
SimpleTableColumn(String strColumnName,
ITableColumnEvaluator objEvaluator,
boolean bSortable)
Creates a SimpleTableColumn |
|
SimpleTableColumn(String strColumnName,
String strDisplayName)
Creates a SimpleTableColumn |
|
SimpleTableColumn(String strColumnName,
String strDisplayName,
boolean bSortable)
Creates a SimpleTableColumn |
|
SimpleTableColumn(String strColumnName,
String strDisplayName,
ITableColumnEvaluator objEvaluator,
boolean bSortable)
Creates a SimpleTableColumn |
Method Summary | |
Object |
getColumnValue(Object objRow)
Extracts the value of the column from the row object |
String |
getDisplayName()
Returns the display name of the column that will be used in the table header. |
ITableColumnEvaluator |
getEvaluator()
Returns the evaluator. |
void |
setDisplayName(String displayName)
Sets the displayName. |
void |
setEvaluator(ITableColumnEvaluator evaluator)
Sets the evaluator. |
Methods inherited from class org.apache.tapestry.contrib.table.model.common.AbstractTableColumn |
getColumnName, getColumnRenderer, getColumnRendererSource, getComparator, getSortable, getValueRenderer, getValueRendererSource, setColumnName, setColumnRendererSource, setComparator, setSortable, setValueRendererSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleTableColumn(String strColumnName)
strColumnName
- the identifying name and display name of the columnpublic SimpleTableColumn(String strColumnName, boolean bSortable)
strColumnName
- the identifying name and display name of the columnbSortable
- whether the column is sortablepublic SimpleTableColumn(String strColumnName, ITableColumnEvaluator objEvaluator, boolean bSortable)
strColumnName
- the identifying name and display name of the columnbSortable
- whether the column is sortableobjEvaluator
- the evaluator to extract the column value from the rowpublic SimpleTableColumn(String strColumnName, String strDisplayName)
strColumnName
- the identifying name of the columnstrDisplayName
- the display name of the columnpublic SimpleTableColumn(String strColumnName, String strDisplayName, boolean bSortable)
strColumnName
- the identifying name of the columnstrDisplayName
- the display name of the columnbSortable
- whether the column is sortablepublic SimpleTableColumn(String strColumnName, String strDisplayName, ITableColumnEvaluator objEvaluator, boolean bSortable)
strColumnName
- the identifying name of the columnstrDisplayName
- the display name of the columnbSortable
- whether the column is sortableobjEvaluator
- the evaluator to extract the column value from the rowMethod Detail |
public String getDisplayName()
public void setDisplayName(String displayName)
displayName
- The displayName to setpublic ITableColumnEvaluator getEvaluator()
public void setEvaluator(ITableColumnEvaluator evaluator)
evaluator
- The evaluator to setpublic Object getColumnValue(Object objRow)
objRow
- the row object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |