PaginationService
instead.@Deprecated public class PaginationSupport<T> extends Object implements PaginationSupport<T>
In this scenario we only want to use this bean to compute our next and previous indexes.
Hence please use this bean in one of two ways (a) set _items_ on this bean and have the bean slice and dice up the uber collection for you and serve it to you with getPage() OR (b) set the total on this bean _only_ and leave the items _alone_. this is recommended for really large collections where its not ideal to load them all up.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COUNT_ON_EACH_PAGE
Deprecated.
|
static int |
DEFAULT_PAGE_SIZE
Deprecated.
|
Constructor and Description |
---|
PaginationSupport()
Deprecated.
|
PaginationSupport(int pageSize)
Deprecated.
|
PaginationSupport(List<T> items,
int pageSize)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<T> |
getItems()
Deprecated.
|
int |
getNextStartIndex()
Deprecated.
Returns the next start index.
|
int[] |
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
|
int |
getNiceEndIndex()
Deprecated.
Returns an end index for use in the UI.
|
int |
getNiceStartIndex()
Deprecated.
Returns a start index for use in the UI.
|
List<T> |
getPage()
Deprecated.
Returns a subset of the list of items passed in, based on startIndex and the page size
|
int |
getPageSize()
Deprecated.
Returns the number of items available on the current page.
|
int |
getPreviousStartIndex()
Deprecated.
Returns the previous start index.
|
int[] |
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
|
int |
getStartIndex()
Deprecated.
Returns the start index.
|
int |
getStartIndexValue()
Deprecated.
Always return the start index value, regardless of whether the pagination has any total.
|
int |
getTotal()
Deprecated.
Returns the total number of items in the list
|
void |
setItems(List<T> items)
Deprecated.
|
void |
setPageSize(int pageSize)
Deprecated.
|
void |
setStartIndex(int startIndex)
Deprecated.
|
void |
setTotal(int total)
Deprecated.
|
public static final int DEFAULT_PAGE_SIZE
public static final int DEFAULT_COUNT_ON_EACH_PAGE
public PaginationSupport()
public PaginationSupport(int pageSize)
public void setStartIndex(int startIndex)
public int getNiceEndIndex()
PaginationSupport
getNiceEndIndex
in interface PaginationSupport<T>
public int getStartIndex()
getStartIndex
in interface PaginationSupport<T>
public int getStartIndexValue()
getStartIndexValue
in interface PaginationSupport<T>
public int getNextStartIndex()
getNextStartIndex
in interface PaginationSupport<T>
public int getPreviousStartIndex()
getPreviousStartIndex
in interface PaginationSupport<T>
public int[] getNextStartIndexes()
PaginationSupport
getNextStartIndexes
in interface PaginationSupport<T>
public int[] getPreviousStartIndexes()
PaginationSupport
getPreviousStartIndexes
in interface PaginationSupport<T>
public int getNiceStartIndex()
PaginationSupport
getNiceStartIndex
in interface PaginationSupport<T>
public List<T> getPage()
getPage
in interface PaginationSupport<T>
public int getTotal()
PaginationSupport
getTotal
in interface PaginationSupport<T>
public void setTotal(int total)
public void setPageSize(int pageSize)
public int getPageSize()
PaginationSupport
getPageSize
in interface PaginationSupport<T>
Copyright © 2003–2019 Atlassian. All rights reserved.