Package bucket.core
Interface PaginationSupport<T>
- Type Parameters:
- T- - the type of the item
- All Known Implementing Classes:
- ListBuilderPaginationSupport,- ManualTotalPaginationSupport,- PagerPaginationSupport,- PaginationSupport,- PaginationSupportAdaptor,- UsernameToUserTranslatingPaginationSupport
Deprecated.
Calculates the page values and indexes for a list of items
- 
Method SummaryModifier and TypeMethodDescriptionintDeprecated.Returns the next start index.int[]Deprecated.Returns an array of start indexes for pages that appear after the current page If there are no further pages, null is returnedintDeprecated.Returns an end index for use in the UI.intDeprecated.Returns a start index for use in the UI.getPage()Deprecated.Returns a sub-list of items that are shown on the page.intDeprecated.Returns the number of items available on the current page.intDeprecated.Returns the previous start index.int[]Deprecated.Returns an array of start indexes for pages that appear before the current page If there are no preceding pages, null is returnedintDeprecated.Returns the start index.intDeprecated.Always return the start index value, regardless of whether the pagination has any total.intgetTotal()Deprecated.Returns the total number of items in the list
- 
Method Details- 
getStartIndexint getStartIndex()Deprecated.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.- Returns:
- the start index.
 
- 
getNiceStartIndexint getNiceStartIndex()Deprecated.Returns a start index for use in the UI. It returns the start index + 1- Returns:
- a nice start index
 
- 
getTotalint getTotal()Deprecated.Returns the total number of items in the list- Returns:
- total number of items in the list
 
- 
getPageDeprecated.Returns a sub-list of items that are shown on the page.- Returns:
- a sub-list of items that are available on the page.
 
- 
getStartIndexValueint getStartIndexValue()Deprecated.Always return the start index value, regardless of whether the pagination has any total.- Returns:
- the start index value, regardless of whether the pagination has any total.
 
- 
getNextStartIndexint getNextStartIndex()Deprecated.Returns the next start index. Returns -1 if we are on the last page (there is no next page).- Returns:
- the next start index. Returns -1 if we are on the last page (there is no next page).
 
- 
getPreviousStartIndexint getPreviousStartIndex()Deprecated.Returns the previous start index. Returns -1 if we are on the first page (there is no previous page).- Returns:
- the previous start index. Returns -1 if we are on the first page (there is no previous page).
 
- 
getNextStartIndexesint[] getNextStartIndexes()Deprecated.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 array of start indexes for pages that appear after the current page
 
- 
getPreviousStartIndexesint[] getPreviousStartIndexes()Deprecated.Returns an array of start indexes for pages that appear before the current page If there are no preceding pages, null is returned- Returns:
- an array of start indexes for pages that appear before the current page
 
- 
getNiceEndIndexint getNiceEndIndex()Deprecated.Returns an end index for use in the UI. It returns the end index - 1- Returns:
- a nice end index
 
- 
getPageSizeint getPageSize()Deprecated.Returns the number of items available on the current page.- Returns:
- the number of items available on the current page.
 
 
- 
PaginationServiceinstead.