|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.joseluismartin.gui.DefaultPaginator
public class DefaultPaginator
Default implementation of Paginator.
PaginatorView
Constructor Summary | |
---|---|
DefaultPaginator()
|
Method Summary | |
---|---|
void |
addPaginatorListener(PaginatorListener listener)
|
void |
firstPage()
|
int |
getCount()
|
int |
getPage()
|
int |
getPageSize()
|
int |
getStartIndex()
|
int |
getTotalPages()
|
int |
getTotalRecords()
|
boolean |
hasNext()
|
boolean |
hasPage(int indexPage)
|
boolean |
hasPrevious()
|
void |
lastPage()
|
void |
nextPage()
|
void |
previousPage()
|
void |
removePaginatorListener(PaginatorListener listener)
|
void |
setCount(int totalRecords)
|
void |
setPage(int indexPage)
|
void |
setPageSize(int pageSize)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultPaginator()
Method Detail |
---|
public int getCount()
getCount
in interface Paginator
public boolean hasNext()
hasNext
in interface Paginator
public boolean hasPage(int indexPage)
hasPage
in interface Paginator
public boolean hasPrevious()
hasPrevious
in interface Paginator
public void setPage(int indexPage)
setPage
in interface Paginator
public int getStartIndex()
getStartIndex
in interface Paginator
public int getTotalPages()
getTotalPages
in interface Paginator
public void addPaginatorListener(PaginatorListener listener)
addPaginatorListener
in interface Paginator
public void removePaginatorListener(PaginatorListener listener)
removePaginatorListener
in interface Paginator
public int getTotalRecords()
public void setCount(int totalRecords)
setCount
in interface Paginator
totalRecords
- the totalRecords to setpublic int getPageSize()
getPageSize
in interface Paginator
public void setPageSize(int pageSize)
setPageSize
in interface Paginator
pageSize
- the pageSize to setpublic int getPage()
getPage
in interface Paginator
public void firstPage()
firstPage
in interface Paginator
public void lastPage()
lastPage
in interface Paginator
public void nextPage()
nextPage
in interface Paginator
public void previousPage()
previousPage
in interface Paginator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |