|
|||||||||
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
public class AbstractTableColumn
A base implementation of ITableColumn
that allows renderers to be set via aggregation.
ITableRendererSource
,
Serialized FormField Summary | |
---|---|
static String |
COLUMN_RENDERER_BLOCK_SUFFIX
The suffix of the name of the Block that will be used as the column renderer for this column |
static String |
VALUE_RENDERER_BLOCK_SUFFIX
The suffix of the name of the Block that will be used as the value renderer for this column |
Constructor Summary | |
---|---|
AbstractTableColumn()
|
|
AbstractTableColumn(String strColumnName,
boolean bSortable,
Comparator objComparator)
|
|
AbstractTableColumn(String strColumnName,
boolean bSortable,
Comparator objComparator,
ITableRendererSource objColumnRendererSource,
ITableRendererSource objValueRendererSource)
|
Method Summary | |
---|---|
String |
getColumnName()
Method getColumnName provides the name of the column. |
IRender |
getColumnRenderer(IRequestCycle objCycle,
ITableModelSource objSource)
Method getColumnRenderer provides a renderer that takes care of rendering the column in the table header. |
ITableRendererSource |
getColumnRendererSource()
Returns the columnRendererSource. |
Comparator |
getComparator()
Method getComparator returns the Comparator to be used to sort the data in the table according to this column. |
boolean |
getSortable()
Method getSortable declares whether the column allows sorting. |
IRender |
getValueRenderer(IRequestCycle objCycle,
ITableModelSource objSource,
Object objRow)
Method getValueRenderer provides a renderer for presenting the value of a particular row in the current column. |
ITableRendererSource |
getValueRendererSource()
Returns the valueRendererSource. |
void |
loadSettings(IComponent objSettingsContainer)
Use the column name to get the column and value renderer sources from the provided component. |
void |
setColumnName(String columnName)
Sets the columnName. |
void |
setColumnRendererSource(ITableRendererSource columnRendererSource)
Sets the columnRendererSource. |
void |
setComparator(Comparator comparator)
Sets the comparator. |
void |
setSortable(boolean sortable)
Sets whether the column is sortable. |
void |
setValueRendererSource(ITableRendererSource valueRendererSource)
Sets the valueRendererSource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String COLUMN_RENDERER_BLOCK_SUFFIX
public static final String VALUE_RENDERER_BLOCK_SUFFIX
Constructor Detail |
---|
public AbstractTableColumn()
public AbstractTableColumn(String strColumnName, boolean bSortable, Comparator objComparator)
public AbstractTableColumn(String strColumnName, boolean bSortable, Comparator objComparator, ITableRendererSource objColumnRendererSource, ITableRendererSource objValueRendererSource)
Method Detail |
---|
public String getColumnName()
ITableColumn
getColumnName
in interface ITableColumn
ITableColumn.getColumnName()
public void setColumnName(String columnName)
columnName
- The columnName to setpublic boolean getSortable()
ITableColumn
getSortable
in interface ITableColumn
ITableColumn.getSortable()
public void setSortable(boolean sortable)
sortable
- The sortable flag to setpublic Comparator getComparator()
ITableColumn
getComparator
in interface ITableColumn
ITableColumn.getComparator()
public void setComparator(Comparator comparator)
comparator
- The comparator to setpublic IRender getColumnRenderer(IRequestCycle objCycle, ITableModelSource objSource)
ITableColumn
getColumnRenderer
in interface ITableColumn
objCycle
- the current request cycleobjSource
- a component that can provide the table model (typically TableView)
ITableColumn.getColumnRenderer(IRequestCycle, ITableModelSource)
public IRender getValueRenderer(IRequestCycle objCycle, ITableModelSource objSource, Object objRow)
ITableColumn
getValueRenderer
in interface ITableColumn
objCycle
- the current request cycleobjSource
- a component that can provide the table model (typically TableView)objRow
- the row data
ITableColumn.getValueRenderer(IRequestCycle, ITableModelSource, Object)
public ITableRendererSource getColumnRendererSource()
public void setColumnRendererSource(ITableRendererSource columnRendererSource)
columnRendererSource
- The columnRendererSource to setpublic ITableRendererSource getValueRendererSource()
public void setValueRendererSource(ITableRendererSource valueRendererSource)
valueRendererSource
- The valueRendererSource to setpublic void loadSettings(IComponent objSettingsContainer)
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 |