org.apache.tapestry.contrib.table.components
Class TableRows

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
                  extended by 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

Field Summary
 
Fields inherited from interface org.apache.tapestry.contrib.table.model.ITableRowSource
TABLE_ROW_SOURCE_ATTRIBUTE
 
Constructor Summary
TableRows()
           
 
Method Summary
abstract  IBinding getRowBinding()
           
 Object getTableRow()
          Returns the currently rendered table row.
 Iterator getTableRowsIterator()
          Get the list of all table rows to be displayed on this page.
protected  void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
          Renders the top level components contained by the receiver.
 void setTableRow(Object tableRow)
          Sets the currently rendered table row.
 
Methods inherited from class org.apache.tapestry.contrib.table.components.AbstractTableViewComponent
getTableModelSource
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad
 
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
 
Methods inherited from class org.apache.tapestry.spec.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

TableRows

public TableRows()
Method Detail

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)