public abstract class TableRows extends AbstractTableViewComponent implements ITableRowSource
TableView
.
The component iterates over the rows of the current page in the table.
The rows are wrapped in 'tr' tags by default.
You can define columns manually within, or
you can use TableValues
to generate the columns automatically.
Please see the Component Reference for details on how to use this component. [Component Reference]
TABLE_ROW_SOURCE_ATTRIBUTE
Constructor and Description |
---|
TableRows() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getFullSource() |
abstract java.lang.Object |
getFullSourceParameter() |
int |
getTableIndex()
Returns the index of the currently rendered table row.
|
java.lang.Object |
getTableRow()
Returns the currently rendered table row.
|
java.util.Iterator |
getTableRowsIterator()
Get the list of all table rows to be displayed on this page.
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle) |
void |
setTableIndex(int tableIndex)
Sets the index of the currently rendered table row.
|
void |
setTableRow(java.lang.Object tableRow)
Sets the currently rendered table row.
|
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 TableRows()
public abstract java.lang.Object getFullSourceParameter()
public java.lang.Object getTableRow()
getTableRow
in interface ITableRowSource
public void setTableRow(java.lang.Object tableRow)
tableRow
- The current table rowpublic int getTableIndex()
public void setTableIndex(int tableIndex)
tableIndex
- The index of the current table rowpublic java.util.Iterator getTableRowsIterator()
public java.lang.Object getFullSource()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.BaseComponent
BaseComponent.renderComponent(IMarkupWriter, IRequestCycle)