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

Fields inherited from interface org.apache.tapestry.contrib.table.model.ITableRowSource
TABLE_ROW_SOURCE_ATTRIBUTE
 
Constructor Summary
TableRows()
           
 
Method Summary
 String getElement()
          Returns the element.
 IBinding getElementBinding()
          Returns the elementBinding.
 IBinding getRowBinding()
          Returns the valueBinding.
 Object getTableRow()
          Returns the tableRow.
 Iterator getTableRowsIterator()
           
 IBinding getValueBinding()
          Returns the valueBinding.
protected  void renderComponent(IMarkupWriter writer, IRequestCycle cycle)
          Renders the top level components contained by the receiver.
 void setElementBinding(IBinding elementBinding)
          Sets the elementBinding.
 void setRowBinding(IBinding valueBinding)
          Sets the valueBinding.
 void setTableRow(Object tableRow)
          Sets the tableRow.
 void setValueBinding(IBinding valueBinding)
          Sets the valueBinding.
 
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

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)