|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.smartlab.web.page.Paginator
public abstract class Paginator
TODO documentation
Field Summary | |
---|---|
protected java.lang.Object[] |
array
The elements in the current page. |
protected org.apache.commons.logging.Log |
logger
Logging system accessor. |
static int |
UNDEFINED_PAGE
A constant to identify the page was not setted. |
static int |
UNLIMITED_ITEMS
A constant to identify an unlimited item listing. |
static int |
UNLIMITED_PAGES
A constant to identify an unlimited page listing. |
Constructor Summary | |
---|---|
protected |
Paginator()
TODO documentation |
protected |
Paginator(int size,
int pages)
TODO documentation |
Method Summary | |
---|---|
int |
getCount()
TODO documentation |
int |
getNext()
TODO documentation |
int |
getPage()
TODO documentation |
int |
getPageCount()
TODO documentation |
int[] |
getPages()
TODO documentation |
int |
getPageSize()
TODO documentation |
int |
getPrev()
TODO documentation |
int |
getStart()
TODO documentation |
int |
getStop()
TODO documentation |
boolean |
hasNext()
|
java.lang.Object |
next()
|
void |
remove()
This operation is not supported. |
void |
reset()
TODO documentation |
protected abstract void |
setArray()
TODO documentation |
void |
setCount(int count)
TODO documentation |
void |
setPage(int page)
TODO documentation |
void |
setPages(int size)
TODO documentation |
void |
setPageSize(int size)
TODO documentation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNLIMITED_PAGES
public static final int UNLIMITED_ITEMS
public static final int UNDEFINED_PAGE
protected org.apache.commons.logging.Log logger
protected java.lang.Object[] array
Constructor Detail |
---|
protected Paginator()
protected Paginator(int size, int pages)
size
- pages
- Method Detail |
---|
public int getPage()
public int[] getPages()
public int getPageCount()
public void setPages(int size)
size
- public void setPage(int page)
page
- public int getNext()
public int getPrev()
public void setCount(int count)
count
- public int getCount()
public int getPageSize()
public void setPageSize(int size)
size
- public int getStart()
public int getStop()
protected abstract void setArray()
public boolean hasNext()
hasNext
in interface java.util.Iterator
Iterator.hasNext()
public java.lang.Object next()
next
in interface java.util.Iterator
Iterator.next()
public void remove()
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
Iterator.remove()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |