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

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

public interface ITableModel

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

Author:
mindbridge

Method Summary
 ITableColumnModel getColumnModel()
          Method getColumnModel.
 Iterator getCurrentPageRows()
          Method getCurrentPageRows.
 int getPageCount()
          Method getPageCount.
 ITablePagingState getPagingState()
          Method getPagingState.
 int getRowCount()
          Returns the total number of rows / values this model is managing.
 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

getRowCount

int getRowCount()
Returns the total number of rows / values this model is managing.

Returns:
The total number of rows - if known.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.