public abstract class TableColumns extends AbstractTableViewComponent
TableView
.
The component iterates over all column objects in the
ITableColumnModel
and renders a header for each
one of them using the renderer provided by the getColumnRender() method in
ITableColumn
. The headers are wrapped in 'th'
tags by default.
Please see the Component Reference for details on how to use this component. [ Component Reference ]
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TABLE_COLUMN_ARROW_DOWN_ATTRIBUTE |
static java.lang.String |
TABLE_COLUMN_ARROW_UP_ATTRIBUTE |
static java.lang.String |
TABLE_COLUMN_CSS_CLASS_SUFFIX |
Constructor and Description |
---|
TableColumns() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.tapestry.IAsset |
getArrowDownAsset() |
abstract org.apache.tapestry.IAsset |
getArrowUpAsset() |
java.lang.String |
getColumnClass()
Returns the CSS class of the generated table cell.
|
abstract java.lang.String |
getColumnClassParameter() |
ITableColumn |
getTableColumn()
Returns the currently rendered table column.
|
java.util.Iterator |
getTableColumnIterator()
Get the list of all table columns to be displayed.
|
org.apache.tapestry.IRender |
getTableColumnRenderer()
Returns the renderer to be used to generate the header of the current column
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle) |
abstract void |
setColumn(ITableColumn column) |
void |
setTableColumn(ITableColumn tableColumn)
Sets the currently rendered table column.
|
getTableModelSource
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty
public static final java.lang.String TABLE_COLUMN_ARROW_UP_ATTRIBUTE
public static final java.lang.String TABLE_COLUMN_ARROW_DOWN_ATTRIBUTE
public static final java.lang.String TABLE_COLUMN_CSS_CLASS_SUFFIX
public TableColumns()
public abstract org.apache.tapestry.IAsset getArrowDownAsset()
public abstract org.apache.tapestry.IAsset getArrowUpAsset()
public abstract void setColumn(ITableColumn column)
public ITableColumn getTableColumn()
public void setTableColumn(ITableColumn tableColumn)
tableColumn
- The current table columnpublic java.util.Iterator getTableColumnIterator()
public org.apache.tapestry.IRender getTableColumnRenderer()
public abstract java.lang.String getColumnClassParameter()
public java.lang.String getColumnClass()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.BaseComponent
BaseComponent.renderComponent(IMarkupWriter, IRequestCycle)