public class SimpleTableColumn extends AbstractTableColumn
ITableColumninterface that provides all the
basic services for displaying a column.| Modifier and Type | Class and Description |
|---|---|
class |
SimpleTableColumn.DefaultTableComparator |
| Modifier and Type | Field and Description |
|---|---|
static ITableRendererSource |
DEFAULT_COLUMN_RENDERER_SOURCE |
static ITableRendererSource |
DEFAULT_VALUE_RENDERER_SOURCE |
static ITableRendererSource |
FORM_COLUMN_RENDERER_SOURCE |
COLUMN_RENDERER_BLOCK_SUFFIX, VALUE_RENDERER_BLOCK_SUFFIX| Constructor and Description |
|---|
SimpleTableColumn(java.lang.String strColumnName)
Creates a SimpleTableColumn
|
SimpleTableColumn(java.lang.String strColumnName,
boolean bSortable)
Creates a SimpleTableColumn
|
SimpleTableColumn(java.lang.String strColumnName,
ITableColumnEvaluator objEvaluator,
boolean bSortable)
Creates a SimpleTableColumn
|
SimpleTableColumn(java.lang.String strColumnName,
java.lang.String strDisplayName)
Creates a SimpleTableColumn
|
SimpleTableColumn(java.lang.String strColumnName,
java.lang.String strDisplayName,
boolean bSortable)
Creates a SimpleTableColumn
|
SimpleTableColumn(java.lang.String strColumnName,
java.lang.String strDisplayName,
ITableColumnEvaluator objEvaluator,
boolean bSortable)
Creates a SimpleTableColumn
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getColumnValue(java.lang.Object objRow)
Extracts the value of the column from the row object
|
java.lang.String |
getDisplayName()
Returns the display name of the column that will be used in the table header.
|
ITableColumnEvaluator |
getEvaluator()
Returns the evaluator.
|
void |
loadSettings(org.apache.tapestry.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(java.util.Comparator comparator)
Sets a comparator that compares the values of this column rather than the objects
representing the full rows.
|
void |
setDisplayName(java.lang.String displayName)
Sets the displayName.
|
void |
setEvaluator(ITableColumnEvaluator evaluator)
Sets the evaluator.
|
getColumnName, getColumnRenderer, getColumnRendererSource, getComparator, getSortable, getValueRenderer, getValueRendererSource, setColumnName, setColumnRendererSource, setComparator, setSortable, setValueRendererSourcepublic static final ITableRendererSource DEFAULT_COLUMN_RENDERER_SOURCE
public static final ITableRendererSource FORM_COLUMN_RENDERER_SOURCE
public static final ITableRendererSource DEFAULT_VALUE_RENDERER_SOURCE
public SimpleTableColumn(java.lang.String strColumnName)
strColumnName - the identifying name and display name of the columnpublic SimpleTableColumn(java.lang.String strColumnName, boolean bSortable)
strColumnName - the identifying name and display name of the columnbSortable - whether the column is sortablepublic SimpleTableColumn(java.lang.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(java.lang.String strColumnName, java.lang.String strDisplayName)
strColumnName - the identifying name of the columnstrDisplayName - the display name of the columnpublic SimpleTableColumn(java.lang.String strColumnName, java.lang.String strDisplayName, boolean bSortable)
strColumnName - the identifying name of the columnstrDisplayName - the display name of the columnbSortable - whether the column is sortablepublic SimpleTableColumn(java.lang.String strColumnName, java.lang.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 rowpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
displayName - The displayName to setpublic ITableColumnEvaluator getEvaluator()
public void setEvaluator(ITableColumnEvaluator evaluator)
evaluator - The evaluator to setpublic void setColumnComparator(java.util.Comparator comparator)
comparator - The column value comparatorpublic java.lang.Object getColumnValue(java.lang.Object objRow)
objRow - the row objectpublic void loadSettings(org.apache.tapestry.IComponent objSettingsContainer)
loadSettings in interface IAdvancedTableColumnloadSettings in class AbstractTableColumnobjSettingsContainer - the component from which to get the settings