| java.lang.Object | |
| ↳ | com.atlassian.confluence.plugins.spacedirectory.util.ListBuilderPaginationSupport<T> |
Calculates pagination indexes using a com.atlassian.confluence.core.ListBuilder. This is preferable to using bucket.core.actions.PaginationSupport, since it only loads part of the list into memory.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
since 3.0 (at least). Please use
getPageSize()}} | |||||||||||
This method is deprecated.
since 3.0 (at least). Please use
getNextStartIndex()} | |||||||||||
Returns the next start index.
| |||||||||||
Returns an array of start indexes for pages that appear after the current page
If there are no further pages, null is returned
| |||||||||||
Returns an end index for use in the UI.
| |||||||||||
Returns a start index for use in the UI.
| |||||||||||
Returns a subset of the list of items passed in, based on startIndex and the page size
| |||||||||||
Returns the number of items available on the current page.
| |||||||||||
This method is deprecated.
since 3.0 (at least). Please use
getPreviousStartIndex()} | |||||||||||
Returns the previous start index.
| |||||||||||
Returns an array of start indexes for pages that appear before the current page
If there are no preceding pages, null is returned
| |||||||||||
Returns the start index.
| |||||||||||
Always return the start index value, regardless of whether the pagination has any total.
| |||||||||||
Returns the total number of items in the list
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
bucket.core.PaginationSupport
| |||||||||||
This method is deprecated.
since 3.0 (at least). Please use getNextStartIndex()}
Returns the next start index. Returns -1 if we are on the last page (there is no next page).
Returns an array of start indexes for pages that appear after the current page If there are no further pages, null is returned
Returns an end index for use in the UI. It returns the end index - 1
Returns a start index for use in the UI. It returns the start index + 1
Returns a subset of the list of items passed in, based on startIndex and the page size
Returns the number of items available on the current page.
This method is deprecated.
since 3.0 (at least). Please use getPreviousStartIndex()}
Returns the previous start index. Returns -1 if we are on the first page (there is no previous page).
Returns an array of start indexes for pages that appear before the current page If there are no preceding pages, null is returned
Returns the start index. If the start index exceeds the index of the last element, the index of the last element is returned. If the start index is less than 0, 0 is returned.
Always return the start index value, regardless of whether the pagination has any total.
Returns the total number of items in the list