org.apache.tapestry.contrib.table.components
Class TableRows
java.lang.Object
org.apache.hivemind.impl.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:
- org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, ITableRowSource, IComponent, IDirectEvent, Component, IRender, ITemplateComponent
- 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
Methods inherited from class org.apache.tapestry.AbstractComponent |
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
getLocation, setLocation |
Methods inherited from interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
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 |
TableRows
public TableRows()
getFullSourceParameter
public abstract Object getFullSourceParameter()
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
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 Iterator getTableRowsIterator()
- Get the list of all table rows to be displayed on this page.
- Returns:
- an iterator of all table rows
getFullSource
public Object getFullSource()
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)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.