|
|||||||||
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
A base implementation of ITableColumn
that allows renderers to be set via aggregation.
ITableRendererSource
, Serialized FormConstructor 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 |
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 |
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
ITableColumn.getColumnRenderer(IRequestCycle, ITableModelSource)
public IRender getValueRenderer(IRequestCycle objCycle, ITableModelSource objSource, Object objRow)
ITableColumn
getValueRenderer
in interface ITableColumn
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 set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |