|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 Form| Field Summary | |
|---|---|
static java.lang.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 java.lang.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(java.lang.String strColumnName,
boolean bSortable,
java.util.Comparator objComparator)
|
|
AbstractTableColumn(java.lang.String strColumnName,
boolean bSortable,
java.util.Comparator objComparator,
ITableRendererSource objColumnRendererSource,
ITableRendererSource objValueRendererSource)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getColumnName()
Method getColumnName provides the name of the column. |
org.apache.tapestry.IRender |
getColumnRenderer(org.apache.tapestry.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. |
java.util.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. |
org.apache.tapestry.IRender |
getValueRenderer(org.apache.tapestry.IRequestCycle objCycle,
ITableModelSource objSource,
java.lang.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(org.apache.tapestry.IComponent objSettingsContainer)
Use the column name to get the column and value renderer sources from the provided component. |
void |
setColumnName(java.lang.String columnName)
Sets the columnName. |
void |
setColumnRendererSource(ITableRendererSource columnRendererSource)
Sets the columnRendererSource. |
void |
setComparator(java.util.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 java.lang.String COLUMN_RENDERER_BLOCK_SUFFIX
public static final java.lang.String VALUE_RENDERER_BLOCK_SUFFIX
| Constructor Detail |
|---|
public AbstractTableColumn()
public AbstractTableColumn(java.lang.String strColumnName,
boolean bSortable,
java.util.Comparator objComparator)
public AbstractTableColumn(java.lang.String strColumnName,
boolean bSortable,
java.util.Comparator objComparator,
ITableRendererSource objColumnRendererSource,
ITableRendererSource objValueRendererSource)
| Method Detail |
|---|
public java.lang.String getColumnName()
ITableColumn
getColumnName in interface ITableColumnITableColumn.getColumnName()public void setColumnName(java.lang.String columnName)
columnName - The columnName to setpublic boolean getSortable()
ITableColumn
getSortable in interface ITableColumnITableColumn.getSortable()public void setSortable(boolean sortable)
sortable - The sortable flag to setpublic java.util.Comparator getComparator()
ITableColumn
getComparator in interface ITableColumnITableColumn.getComparator()public void setComparator(java.util.Comparator comparator)
comparator - The comparator to set
public org.apache.tapestry.IRender getColumnRenderer(org.apache.tapestry.IRequestCycle objCycle,
ITableModelSource objSource)
ITableColumn
getColumnRenderer in interface ITableColumnobjCycle - the current request cycleobjSource - a component that can provide the table model (typically TableView)
ITableColumn.getColumnRenderer(IRequestCycle, ITableModelSource)
public org.apache.tapestry.IRender getValueRenderer(org.apache.tapestry.IRequestCycle objCycle,
ITableModelSource objSource,
java.lang.Object objRow)
ITableColumn
getValueRenderer in interface ITableColumnobjCycle - 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()
getColumnRendererSource in interface IAdvancedTableColumnpublic void setColumnRendererSource(ITableRendererSource columnRendererSource)
setColumnRendererSource in interface IAdvancedTableColumncolumnRendererSource - The columnRendererSource to setpublic ITableRendererSource getValueRendererSource()
getValueRendererSource in interface IAdvancedTableColumnpublic void setValueRendererSource(ITableRendererSource valueRendererSource)
setValueRendererSource in interface IAdvancedTableColumnvalueRendererSource - The valueRendererSource to setpublic void loadSettings(org.apache.tapestry.IComponent objSettingsContainer)
loadSettings in interface IAdvancedTableColumnobjSettingsContainer - the component from which to get the settings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||