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:
- IComponent, ILocatable, ILocationHolder, IRender, ITableRowSource
- Direct Known Subclasses:
- TableFormRows
- public 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.
Parameter |
Type |
Direction |
Required |
Default |
Description |
row |
Object |
out |
no |
|
The value object of the current row. |
element |
String |
in |
no |
tr |
The tag to use to wrap the rows in. |
- Version:
- $Id: TableRows.java,v 1.2 2003/03/15 21:22:17 hlship Exp $
- 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()
getTableRowsIterator
public Iterator getTableRowsIterator()
getTableRow
public Object getTableRow()
- Returns the tableRow.
- Specified by:
getTableRow
in interface ITableRowSource
- Returns:
- Object
setTableRow
public void setTableRow(Object tableRow)
- Sets the tableRow.
- Parameters:
tableRow
- The tableRow to set
getRowBinding
public IBinding getRowBinding()
- Returns the valueBinding.
- Returns:
- IBinding
setRowBinding
public void setRowBinding(IBinding valueBinding)
- Sets the valueBinding.
- Parameters:
valueBinding
- The valueBinding to set
getValueBinding
public IBinding getValueBinding()
- Returns the valueBinding.
- Returns:
- IBinding
setValueBinding
public void setValueBinding(IBinding valueBinding)
- Sets the valueBinding.
- Parameters:
valueBinding
- The valueBinding to set
getElementBinding
public IBinding getElementBinding()
- Returns the elementBinding.
- Returns:
- IBinding
setElementBinding
public void setElementBinding(IBinding elementBinding)
- Sets the elementBinding.
- Parameters:
elementBinding
- The elementBinding to set
getElement
public String getElement()
- Returns the element.
- Returns:
- String
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)