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

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by 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

Field Summary
 
Fields inherited from interface org.apache.tapestry.contrib.table.model.ITableModelSource
TABLE_MODEL_SOURCE_ATTRIBUTE
 
Constructor Summary
Table()
           
 
Method Summary
 void fireObservedStateChange()
          Indicates that the table model has changed and it may need to saved.
 ITableColumn getTableColumn()
          Returns the currently rendered table column.
protected  TableColumns getTableColumnsComponent()
           
 ITableModel getTableModel()
          Returns the table model currently used
 Object getTableRow()
          Returns the currently rendered table row or null if the rows are not rendered at the moment.
protected  TableRows getTableRowsComponent()
           
protected  TableValues getTableValuesComponent()
           
protected  TableView getTableViewComponent()
           
 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.
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
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.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
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

Table

public Table()
Method Detail

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()