org.apache.tapestry.contrib.table.components
Class TableValues
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.AbstractTableRowComponent
|
+--org.apache.tapestry.contrib.table.components.TableValues
- All Implemented Interfaces:
- IComponent, ILocatable, ILocationHolder, IRender
- public class TableValues
- extends AbstractTableRowComponent
A low level Table component that generates the columns in the current row in the table.
This component must be wrapped by TableRows
.
The component iterates over the columns in the table and
automatically renders the column values for the current table row.
The columns are wrapped in 'td' tags by default.
The column values are rendered using the renderer returned by the
getValueRenderer() method in ITableColumn
.
Parameter |
Type |
Direction |
Required |
Default |
Description |
element |
String |
in |
no |
td |
The tag to use to wrap the column values in. |
column |
ITableColumn |
out |
no |
|
The object representing the current column. |
- Version:
- $Id: TableValues.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 |
TableValues
public TableValues()
getTableColumnIterator
public Iterator getTableColumnIterator()
getTableColumn
public ITableColumn getTableColumn()
- Returns the tableColumn.
- Returns:
- ITableColumn
setTableColumn
public void setTableColumn(ITableColumn tableColumn)
- Sets the tableColumn.
- Parameters:
tableColumn
- The tableColumn to set
getTableValueRenderer
public IRender getTableValueRenderer()
getElementBinding
public IBinding getElementBinding()
- Returns the elementBinding.
- Returns:
- IBinding
setElementBinding
public void setElementBinding(IBinding elementBinding)
- Sets the elementBinding.
- Parameters:
elementBinding
- The elementBinding to set
getColumnBinding
public IBinding getColumnBinding()
- Returns the columnBinding.
- Returns:
- IBinding
setColumnBinding
public void setColumnBinding(IBinding columnBinding)
- Sets the columnBinding.
- Parameters:
columnBinding
- The columnBinding to set
getElement
public String getElement()
- Returns the element.
- Returns:
- String