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 243791 2004-02-19 17:38:13Z hlship $
Author:
mindbridge

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

Method Detail

getPageSize

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

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

int getCurrentPage()
Gets the currently selected page. The page number is counted from 0.

Returns:
int the current active page

setCurrentPage

void setCurrentPage(int nPage)
Sets the newly selected page. The page number is counted from 0.

Parameters:
nPage - the new active page