public abstract class AbstractPageTableModel extends javax.swing.table.AbstractTableModel implements TablePaging
TTableModel
instead.Modifier and Type | Field and Description |
---|---|
protected int |
currentPageIndex |
protected int |
pageRowSize |
protected int |
pageTotalCount |
Constructor and Description |
---|
AbstractPageTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addPageListener(PageListener pageListener)
Add a page listener into this table paging.
|
void |
firePageChanged()
Fire page change event.
|
void |
firstPage()
Goto first page
|
int |
getCurrentPageIndex()
Get current page index.
|
int |
getFirstRowIndex()
Gets the first row index.
|
int |
getLastRowIndex()
Gets the last row index.
|
int |
getPageRowSize()
Get row size of each page.
|
int |
getPageTotalCount()
Return how many pages you have totally.
|
void |
lastPage()
Go last page
|
void |
nextPage()
Go next page
|
void |
previousPage()
Go previous page
|
void |
removePageListener(PageListener pageListener)
Remove a page listener from this table paging.
|
void |
setCurrentPageIndex(int currentpage)
Set current page index.
|
void |
setPageRowSize(int pageRowSize)
Set page row size
|
void |
update()
Update table view.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTotalRowCount
protected int pageTotalCount
protected int pageRowSize
protected int currentPageIndex
public void addPageListener(PageListener pageListener)
addPageListener
in interface TablePaging
pageListener
- PageListener a page listener to be addedremovePageListener(twaver.table.PageListener)
public void removePageListener(PageListener pageListener)
removePageListener
in interface TablePaging
pageListener
- PageListener the page listener to be removed.addPageListener(twaver.table.PageListener)
public void firePageChanged()
public void update()
update
in interface TablePaging
public int getCurrentPageIndex()
getCurrentPageIndex
in interface TablePaging
setCurrentPageIndex(int)
public int getPageRowSize()
getPageRowSize
in interface TablePaging
setPageRowSize(int)
public int getPageTotalCount()
getPageTotalCount
in interface TablePaging
public void setCurrentPageIndex(int currentpage)
setCurrentPageIndex
in interface TablePaging
currentPageIndex
- int current page indexgetCurrentPageIndex()
public void setPageRowSize(int pageRowSize)
setPageRowSize
in interface TablePaging
pageRowSize
- int page row sizegetPageRowSize()
public void firstPage()
firstPage
in interface TablePaging
lastPage()
public void previousPage()
previousPage
in interface TablePaging
nextPage()
public void nextPage()
nextPage
in interface TablePaging
previousPage()
public void lastPage()
lastPage
in interface TablePaging
previousPage()
public int getFirstRowIndex()
public int getLastRowIndex()
Copyright © 2002 - 2010 Serva Software. All Rights Reserved.