Package org.exoplatform.commons.utils
Class PageList<E>
java.lang.Object
org.exoplatform.commons.utils.PageList<E>
- Direct Known Subclasses:
LazyPageList,ObjectPageList
Deprecated.
Subclasses of this object should be replaced by the
subclass and
an implementation of the ListAccess interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intDeprecated.protected intDeprecated.Deprecated.protected intDeprecated.static final PageListDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckAndSetPage(int page) Deprecated.Deprecated.getAll()Deprecated.intDeprecated.Returns the number of available elements.intDeprecated.Returns the number of available pages.intDeprecated.Returns the current page index.intgetFrom()Deprecated.Returns the from index.getPage(int page) Deprecated.Updates the current page index and retrieves the element from that page.intDeprecated.Returns the page size.intgetTo()Deprecated.Returns the to index.protected abstract voidpopulateCurrentPage(int page) Deprecated.protected voidsetAvailablePage(int available) Deprecated.voidsetPageSize(int pageSize) Deprecated.Updates the page size.
-
Field Details
-
EMPTY_LIST
Deprecated. -
available_
protected int available_Deprecated. -
availablePage_
protected int availablePage_Deprecated. -
currentPage_
protected int currentPage_Deprecated. -
currentListPage_
Deprecated.
-
-
Constructor Details
-
PageList
public PageList(int pageSize) Deprecated.
-
-
Method Details
-
getPageSize
public int getPageSize()Deprecated.Returns the page size.- Returns:
- the page size
-
setPageSize
public void setPageSize(int pageSize) Deprecated.Updates the page size.- Parameters:
pageSize- the new page size value
-
getCurrentPage
public int getCurrentPage()Deprecated.Returns the current page index.- Returns:
- the current page
-
getAvailable
public int getAvailable()Deprecated.Returns the number of available elements.- Returns:
- the available elements
-
getAvailablePage
public int getAvailablePage()Deprecated.Returns the number of available pages.- Returns:
- the available pages
-
currentPage
Deprecated.- Throws:
Exception
-
populateCurrentPage
Deprecated.- Throws:
Exception
-
getPage
Deprecated.Updates the current page index and retrieves the element from that page.- Parameters:
page- the page index- Returns:
- the list of element of the page
- Throws:
Exception- an exception
-
getAll
Deprecated.- Throws:
Exception
-
checkAndSetPage
Deprecated.- Throws:
Exception
-
setAvailablePage
protected void setAvailablePage(int available) Deprecated. -
getFrom
public int getFrom()Deprecated.Returns the from index.- Returns:
- the from index
-
getTo
public int getTo()Deprecated.Returns the to index.- Returns:
- the to index
-