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

All Known Subinterfaces:
IFullTableModel
All Known Implementing Classes:
AbstractTableModel, SimpleTableModel

public interface ITableModel

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

Author:
mindbridge

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

Method Detail

getColumnModel

public ITableColumnModel getColumnModel()
Method getColumnModel.

Returns:
ITableColumnModel the column model of the table

getSortingState

public ITableSortingState getSortingState()
Method getSortingState.

Returns:
ITableSortingState the sorting state of the table

getPagingState

public ITablePagingState getPagingState()
Method getPagingState.

Returns:
ITablePagingState the paging state of the table

getPageCount

public int getPageCount()
Method getPageCount.

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

getCurrentPageRows

public java.util.Iterator getCurrentPageRows()
Method getCurrentPageRows.

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