org.apache.tapestry.contrib.table.components
Class Table
java.lang.Object
org.apache.tapestry.spec.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.BaseComponent
org.apache.tapestry.contrib.table.components.Table
- All Implemented Interfaces:
- ITableModelSource, IComponent, ILocatable, ILocationHolder, IRender
- Direct Known Subclasses:
- FormTable
public class Table
- extends BaseComponent
- implements ITableModelSource
The facade component in the Table family. Table allows you to present
a sortable and pagable table simply and easily by using only this one component.
Please see the Component Reference for details on how to use this component.
[Component Reference]
- Version:
- $Id: Table.java 243791 2004-02-19 17:38:13Z hlship $
- Author:
- mindbridge
Constructor Summary |
Table()
|
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 interface org.apache.tapestry.IComponent |
addAsset, addBody, addComponent, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, renderBody, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification |
Methods inherited from interface org.apache.tapestry.IRender |
render |
Table
public Table()
getTableModel
public ITableModel getTableModel()
- Description copied from interface:
ITableModelSource
- Returns the table model currently used
- Specified by:
getTableModel
in interface ITableModelSource
- Returns:
- ITableModel the current table model
- See Also:
ITableModelSource.getTableModel()
fireObservedStateChange
public void fireObservedStateChange()
- Indicates that the table model has changed and it may need to saved.
This method has to be invoked if modifications are made to the model.
- Specified by:
fireObservedStateChange
in interface ITableModelSource
- See Also:
ITableModelSource.fireObservedStateChange()
reset
public void reset()
- Resets the state of the component and forces it to load a new
TableModel from the tableModel binding the next time it renders.
getTableColumn
public ITableColumn getTableColumn()
- Returns the currently rendered table column.
You can call this method to obtain the current column.
- Returns:
- ITableColumn the current table column
getTableRow
public Object getTableRow()
- Returns the currently rendered table row or null
if the rows are not rendered at the moment.
You can call this method to obtain the current row.
- Returns:
- Object the current table row
getTableViewComponent
protected TableView getTableViewComponent()
getTableColumnsComponent
protected TableColumns getTableColumnsComponent()
getTableRowsComponent
protected TableRows getTableRowsComponent()
getTableValuesComponent
protected TableValues getTableValuesComponent()