public class PaginableWithDelegate<T> extends ArrayList<T> implements Paginable<T>
| Constructor and Description |
|---|
PaginableWithDelegate(Paginable delegate) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Aggregate> |
getAggregates() |
long |
getCurrentPageIndex()
Returns the current page index as a zero-based integer.
|
long |
getCurrentPageSize()
Returns the number of elements in current page.
|
String |
getErrorMessage() |
long |
getMaxPageSize()
Returns the max number of results per page.
|
long |
getNumberOfPages()
Returns the total number of pages or 0 if number of pages is unknown.
|
long |
getPageSize()
Returns the number of results per page.
|
long |
getResultsCount()
Returns the number of result elements if available or a negative value if
it is unknown:
UNKNOWN_SIZE if it is unknown as query was
not done, and since 5.5, UNKNOWN_SIZE_AFTER_QUERY if it is
still unknown after query was done. |
boolean |
hasAggregateSupport() |
boolean |
hasError() |
boolean |
isLastPageAvailable()
Returns a boolean expressing if the last page can be displayed.
|
boolean |
isNextPageAvailable()
Returns a boolean expressing if there are further pages.
|
boolean |
isPreviousPageAvailable()
Returns a boolean expressing if there is a previous page.
|
boolean |
isSortable()
Returns if this provider is sortable.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringpublic PaginableWithDelegate(Paginable delegate)
delegate - public long getPageSize()
PaginablegetPageSize in interface Paginable<T>public long getMaxPageSize()
PaginableIf page size is greater than this maximum value, it will be taken into account instead.
getMaxPageSize in interface Paginable<T>public long getResultsCount()
PaginableUNKNOWN_SIZE if it is unknown as query was
not done, and since 5.5, UNKNOWN_SIZE_AFTER_QUERY if it is
still unknown after query was done.getResultsCount in interface Paginable<T>public long getNumberOfPages()
PaginablegetNumberOfPages in interface Paginable<T>public boolean isNextPageAvailable()
PaginableisNextPageAvailable in interface Paginable<T>public boolean isLastPageAvailable()
PaginableisLastPageAvailable in interface Paginable<T>public boolean isPreviousPageAvailable()
PaginableisPreviousPageAvailable in interface Paginable<T>public long getCurrentPageSize()
PaginablegetCurrentPageSize in interface Paginable<T>public long getCurrentPageIndex()
PaginablegetCurrentPageIndex in interface Paginable<T>public boolean isSortable()
PaginableisSortable in interface Paginable<T>public String getErrorMessage()
getErrorMessage in interface Paginable<T>public Map<String,Aggregate> getAggregates()
getAggregates in interface Paginable<T>public boolean hasAggregateSupport()
hasAggregateSupport in interface Paginable<T>Copyright © 2014 Nuxeo SA. All rights reserved.