|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PageableTableModel
An interface for paging through rows of data in a TableModel.
| Method Summary | |
|---|---|
int |
getCurrentPage()
Returns the currently displayed page |
int |
getRowsPerPage()
Returns the number of viewable rows per each displayed page |
int |
getTotalPages()
Returns the total number of pages this model contains based on total rows / rows per page. |
int |
getTotalRows()
Returns the total number of rows backing the model. |
void |
setCurrentPage(int page)
Sets the current page this model should reflect. |
void |
setRowsPerPage(int rows)
Sets the number of viewable rows per each displayed page. |
| Methods inherited from interface nextapp.echo2.app.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, removeTableModelListener |
| Method Detail |
|---|
void setCurrentPage(int page)
DefaultTableModel
should call fireTableDataChanged()
page - the page to displayint getCurrentPage()
void setRowsPerPage(int rows)
DefaultTableModel
should call fireTableDataChanged()
rows - the number of rows to displayint getRowsPerPage()
int getTotalRows()
int getTotalPages()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||