|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | 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
public class SimpleTableColumn
A simple minimal implementation of the
ITableColumn
interface that
provides all the basic services for displaying a column.
Nested Class Summary | |
---|---|
class |
SimpleTableColumn.DefaultTableComparator
|
Field Summary | |
---|---|
static ITableRendererSource |
DEFAULT_COLUMN_RENDERER_SOURCE
|
static ITableRendererSource |
DEFAULT_VALUE_RENDERER_SOURCE
|
static ITableRendererSource |
FORM_COLUMN_RENDERER_SOURCE
|
Fields inherited from class org.apache.tapestry.contrib.table.model.common.AbstractTableColumn |
---|
COLUMN_RENDERER_BLOCK_SUFFIX, VALUE_RENDERER_BLOCK_SUFFIX |
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 |
loadSettings(IComponent objSettingsContainer)
Use the column name to get the display name, as well as the column and value renderer sources from the provided component. |
void |
setColumnComparator(Comparator comparator)
Sets a comparator that compares the values of this column rather than the objects representing the full rows. |
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 |
Field Detail |
---|
public static final ITableRendererSource DEFAULT_COLUMN_RENDERER_SOURCE
public static final ITableRendererSource FORM_COLUMN_RENDERER_SOURCE
public static final ITableRendererSource DEFAULT_VALUE_RENDERER_SOURCE
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 void setColumnComparator(Comparator comparator)
comparator
- The column value comparatorpublic Object getColumnValue(Object objRow)
objRow
- the row object
public void loadSettings(IComponent objSettingsContainer)
loadSettings
in class AbstractTableColumn
objSettingsContainer
- the component from which to get the settings
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |