public class Pager extends Observable
Constructor and Description |
---|
Pager(int entriesPerPage,
PagedTable table) |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public Pager(int entriesPerPage, PagedTable table)
public void throwEvent(int event, int[] rows)
public void setConfirmationMessageDeleteAllEntries(String message)
public void setConfirmationMessageDeleteOneEntry(String message)
public void setSelectedRows(int[] rows)
public void increaseSelectedRows()
public void decreaseSelectedRows()
public void addSelectedRow(int row)
public int[] getSelectedRows()
public void addEntry(Object entry)
entry
- public 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 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 void removePage(int page)
public int getPageCount()
public boolean isInCurrentPage(int row)
public int getEntriesPerPage()
public int getSelectedPageNumber()
public void addListener(PagedTableListener listener)