org.apache.tapestry.contrib.table.model
Interface ITableSessionStateManager

All Known Implementing Classes:
FullTableSessionStateManager, NullTableSessionStateManager, SimpleTableSessionStateManager, TableViewSessionStateManager

public interface ITableSessionStateManager

An interface responsible for determining what data would be stored in the session between requests. It could be only the table state, it could be entire table including the data, or it could be nothing at all. It is all determined by the implemention of this interface.

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

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
 

Method Detail

getSessionState

Serializable getSessionState(ITableModel objModel)
Method getSessionState extracts the "persistent" portion of the table model

Parameters:
objModel - the table model to extract the session state from
Returns:
Object the session state to be saved between the requests

recreateTableModel

ITableModel recreateTableModel(Serializable objState)
Method recreateTableModel recreates a table model from the saved session state

Parameters:
objState - the saved session state
Returns:
ITableModel the recreated table model