org.apache.tapestry.contrib.table.components
Class TableRows
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
org.apache.tapestry.contrib.table.components.TableRows
- All Implemented Interfaces:
- ITableRowSource, IComponent, ILocatable, ILocationHolder, IRender
- Direct Known Subclasses:
- TableFormRows
public abstract class TableRows
- extends AbstractTableViewComponent
- implements ITableRowSource
A low level Table component that generates the rows of the current page in the table.
This component must be wrapped by 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]
- Version:
- $Id: TableRows.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- mindbridge
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString |
TableRows
public TableRows()
getRowBinding
public abstract IBinding getRowBinding()
getTableRow
public Object getTableRow()
- Returns the currently rendered table row.
You can call this method to obtain the current row.
- Specified by:
getTableRow
in interface ITableRowSource
- Returns:
- Object the current table row
setTableRow
public void setTableRow(Object tableRow)
- Sets the currently rendered table row.
This method is for internal use only.
- Parameters:
tableRow
- The current table row
getTableRowsIterator
public Iterator getTableRowsIterator()
- Get the list of all table rows to be displayed on this page.
- Returns:
- an iterator of all table rows
renderComponent
protected void renderComponent(IMarkupWriter writer,
IRequestCycle cycle)
- Description copied from class:
BaseComponent
- Renders the top level components contained by the receiver.
- Overrides:
renderComponent
in class BaseComponent
- See Also:
BaseComponent.renderComponent(IMarkupWriter, IRequestCycle)