public class Pager
extends java.util.Observable
Constructor and Description |
---|
Pager(int entriesPerPage,
PagedTable table) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(java.lang.Object entry)
Adds a new entry.
|
void |
addListener(PagedTableListener listener) |
void |
addSelectedRow(int row) |
void |
decreaseSelectedPage() |
void |
decreaseSelectedRows() |
int |
getEntriesCount()
Gets the number of entries in this pager
|
int |
getEntriesPerPage() |
java.lang.Object[] |
getEntry(int row) |
java.lang.Object[] |
getLastEntry() |
java.util.List<java.lang.Object> |
getPage(int page) |
int |
getPageCount() |
int |
getPageFromRow(int row) |
int |
getRowFromPageRow(int pageRow)
Gets the number of row from the row in the current page
|
java.util.List<java.lang.Object> |
getSelectedPage() |
int |
getSelectedPageNumber() |
int[] |
getSelectedRows() |
void |
increaseSelectedPage() |
void |
increaseSelectedRows() |
boolean |
isInCurrentPage(int row) |
boolean |
isSelectedRow(int row) |
boolean |
messageBoxYesOrNot(java.lang.String msg,
java.lang.Object parentWindow) |
void |
removeAllEntries() |
void |
removeAllEntriesWithoutAsk() |
void |
removeEntry(int pos) |
void |
removePage(int page) |
void |
setConfirmationMessageDeleteAllEntries(java.lang.String message) |
void |
setConfirmationMessageDeleteOneEntry(java.lang.String message) |
void |
setEntriesPerPage(int n) |
void |
setSelectedPage(int page) |
void |
setSelectedRows(int[] rows) |
void |
swapRow(int i,
int j) |
void |
throwEvent(int event,
int[] rows) |
public Pager(int entriesPerPage, PagedTable table)
public void throwEvent(int event, int[] rows)
public void setConfirmationMessageDeleteAllEntries(java.lang.String message)
public void setConfirmationMessageDeleteOneEntry(java.lang.String message)
public void setSelectedRows(int[] rows)
public void increaseSelectedRows()
public void decreaseSelectedRows()
public void addSelectedRow(int row)
public int[] getSelectedRows()
public void addEntry(java.lang.Object entry)
entry
- public java.lang.Object[] getEntry(int row)
public void removeEntry(int pos)
public void swapRow(int i, int j)
public boolean isSelectedRow(int row)
public int getEntriesCount()
public int getRowFromPageRow(int pageRow)
pageRow
- public java.lang.Object[] getLastEntry()
public void removeAllEntries()
public void removeAllEntriesWithoutAsk()
public void setEntriesPerPage(int n)
public void increaseSelectedPage()
public void decreaseSelectedPage()
public void setSelectedPage(int page)
public int getPageFromRow(int row)
public java.util.List<java.lang.Object> getSelectedPage()
public void removePage(int page)
public int getPageCount()
public boolean isInCurrentPage(int row)
public java.util.List<java.lang.Object> getPage(int page)
public int getEntriesPerPage()
public int getSelectedPageNumber()
public void addListener(PagedTableListener listener)
public boolean messageBoxYesOrNot(java.lang.String msg, java.lang.Object parentWindow)