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

java.lang.Object
  extended byorg.apache.hivemind.impl.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
          extended byorg.apache.tapestry.BaseComponent
              extended byorg.apache.tapestry.contrib.table.components.AbstractTableViewComponent
                  extended byorg.apache.tapestry.contrib.table.components.TableRows
All Implemented Interfaces:
org.apache.tapestry.IComponent, org.apache.tapestry.IRender, ITableRowSource, org.apache.tapestry.ITemplateComponent, org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder
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]

Author:
mindbridge

Field Summary
 
Fields inherited from interface org.apache.tapestry.contrib.table.model.ITableRowSource
TABLE_ROW_SOURCE_ATTRIBUTE
 
Constructor Summary
TableRows()
           
 
Method Summary
 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.
 
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, 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
 
Methods inherited from class org.apache.hivemind.impl.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.IComponent
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
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Constructor Detail

TableRows

public TableRows()
Method Detail

getFullSourceParameter

public abstract java.lang.Object getFullSourceParameter()

getTableRow

public java.lang.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(java.lang.Object tableRow)
Sets the currently rendered table row. This method is for internal use only.

Parameters:
tableRow - The current table row

getTableIndex

public int getTableIndex()
Returns the index of the currently rendered table row. You can call this method to obtain the index of the current row.

Returns:
int the current table index

setTableIndex

public void setTableIndex(int tableIndex)
Sets the index of the currently rendered table row. This method is for internal use only.

Parameters:
tableIndex - The index of the current table row

getTableRowsIterator

public java.util.Iterator getTableRowsIterator()
Get the list of all table rows to be displayed on this page.

Returns:
an iterator of all table rows

getFullSource

public java.lang.Object getFullSource()

renderComponent

protected void renderComponent(org.apache.tapestry.IMarkupWriter writer,
                               org.apache.tapestry.IRequestCycle cycle)
See Also:
BaseComponent.renderComponent(IMarkupWriter, IRequestCycle)