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

All Known Implementing Classes:
SimpleTablePagingState

public interface ITablePagingState

An interface defining the management of the table's paging state.

Version:
$Id: ITablePagingState.java,v 1.1 2003/03/05 23:03:21 hlship Exp $
Author:
mindbridge

Method Summary
 int getCurrentPage()
          Method getCurrentPage.
 int getPageSize()
          Method getPageSize provides the size of a page in a number of records.
 void setCurrentPage(int nPage)
          Method setCurrentPage.
 void setPageSize(int nPageSize)
          Method setPageSize updates the size of a page in a number of records.
 

Method Detail

getPageSize

public int getPageSize()
Method getPageSize provides the size of a page in a number of records. This value may be meaningless if the model uses a different method for pagination.
Returns:
int the current page size

setPageSize

public void setPageSize(int nPageSize)
Method setPageSize updates the size of a page in a number of records. This value may be meaningless if the model uses a different method for pagination.
Parameters:
nPageSize - the new page size

getCurrentPage

public int getCurrentPage()
Method getCurrentPage.
Returns:
int the current active page

setCurrentPage

public void setCurrentPage(int nPage)
Method setCurrentPage.
Parameters:
nPage - the new active page