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

All Known Implementing Classes:
AbstractTableModel, BasicTableModelWrap, SimpleTableModel, SqlTableModel

public interface ITableModel

The main interface defining the abstraction containing the table data and state

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

Method Summary
 ITableColumnModel getColumnModel()
          Method getColumnModel.
 Iterator getCurrentPageRows()
          Method getCurrentPageRows.
 int getPageCount()
          Method getPageCount.
 ITablePagingState getPagingState()
          Method getPagingState.
 ITableSortingState getSortingState()
          Method getSortingState.
 

Method Detail

getColumnModel

ITableColumnModel getColumnModel()
Method getColumnModel.

Returns:
ITableColumnModel the column model of the table

getSortingState

ITableSortingState getSortingState()
Method getSortingState.

Returns:
ITableSortingState the sorting state of the table

getPagingState

ITablePagingState getPagingState()
Method getPagingState.

Returns:
ITablePagingState the paging state of the table

getPageCount

int getPageCount()
Method getPageCount.

Returns:
int the number of pages this table would have given the current data and paging state

getCurrentPageRows

Iterator getCurrentPageRows()
Method getCurrentPageRows.

Returns:
Iterator the rows in the current table page given the current data, sorting, and paging state