|
eXo Kernel :: Commons Utils 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.commons.utils.PageList<E>
public abstract class PageList<E>
Subclasses of this object should be replaced by the subclass and
an implementation of the ListAccess interface.
| Field Summary | |
|---|---|
protected int |
available_
Deprecated. |
protected int |
availablePage_
Deprecated. |
protected List<E> |
currentListPage_
Deprecated. |
protected int |
currentPage_
Deprecated. |
static PageList |
EMPTY_LIST
Deprecated. |
| Constructor Summary | |
|---|---|
PageList(int pageSize)
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
checkAndSetPage(int page)
Deprecated. |
List<E> |
currentPage()
Deprecated. |
abstract List<E> |
getAll()
Deprecated. |
int |
getAvailable()
Deprecated. Returns the number of available elements. |
int |
getAvailablePage()
Deprecated. Returns the number of available pages. |
int |
getCurrentPage()
Deprecated. Returns the current page index. |
int |
getFrom()
Deprecated. Returns the from index. |
List<E> |
getPage(int page)
Deprecated. Updates the current page index and retrieves the element from that page. |
int |
getPageSize()
Deprecated. Returns the page size. |
int |
getTo()
Deprecated. Returns the to index. |
protected abstract void |
populateCurrentPage(int page)
Deprecated. |
protected void |
setAvailablePage(int available)
Deprecated. |
void |
setPageSize(int pageSize)
Deprecated. Updates the page size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final PageList EMPTY_LIST
protected int available_
protected int availablePage_
protected int currentPage_
protected List<E> currentListPage_
| Constructor Detail |
|---|
public PageList(int pageSize)
| Method Detail |
|---|
public int getPageSize()
public void setPageSize(int pageSize)
pageSize - the new page size valuepublic int getCurrentPage()
public int getAvailable()
public int getAvailablePage()
public List<E> currentPage()
throws Exception
Exception
protected abstract void populateCurrentPage(int page)
throws Exception
Exception
public List<E> getPage(int page)
throws Exception
page - the page index
Exception - an exception
public abstract List<E> getAll()
throws Exception
Exception
protected void checkAndSetPage(int page)
throws Exception
Exceptionprotected void setAvailablePage(int available)
public int getFrom()
public int getTo()
|
eXo Kernel :: Commons Utils 2.4.10-UXP01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||