org.apache.tapestry.contrib.table.model.simple
Class SimpleTableSessionStateManager

java.lang.Object
  extended by org.apache.tapestry.contrib.table.model.simple.SimpleTableSessionStateManager
All Implemented Interfaces:
ITableSessionStateManager

public class SimpleTableSessionStateManager
extends Object
implements ITableSessionStateManager

A ITableSessionStateManager implementation that saves only the paging and sorting state of the table model into the session.

Version:
$Id: SimpleTableSessionStateManager.java 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge

Constructor Summary
SimpleTableSessionStateManager(ITableDataModel objDataModel, ITableColumnModel objColumnModel)
           
 
Method Summary
 Serializable getSessionState(ITableModel objModel)
          Method getSessionState extracts the "persistent" portion of the table model
 ITableModel recreateTableModel(Serializable objState)
          Method recreateTableModel recreates a table model from the saved session state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTableSessionStateManager

public SimpleTableSessionStateManager(ITableDataModel objDataModel,
                                      ITableColumnModel objColumnModel)
Method Detail

getSessionState

public Serializable getSessionState(ITableModel objModel)
Description copied from interface: ITableSessionStateManager
Method getSessionState extracts the "persistent" portion of the table model

Specified by:
getSessionState in interface ITableSessionStateManager
Parameters:
objModel - the table model to extract the session state from
Returns:
Object the session state to be saved between the requests
See Also:
ITableSessionStateManager.getSessionState(ITableModel)

recreateTableModel

public ITableModel recreateTableModel(Serializable objState)
Description copied from interface: ITableSessionStateManager
Method recreateTableModel recreates a table model from the saved session state

Specified by:
recreateTableModel in interface ITableSessionStateManager
Parameters:
objState - the saved session state
Returns:
ITableModel the recreated table model
See Also:
ITableSessionStateManager.recreateTableModel(Serializable)