public class PaginationSupport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COUNT_ON_EACH_PAGE |
static int |
DEFAULT_PAGE_SIZE |
| Constructor and Description |
|---|
PaginationSupport() |
PaginationSupport(int pageSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCountOnEachPage()
Deprecated.
since 0.24. Please use
getPageSize() |
int |
getEndIndex()
Deprecated.
since 0.24. Please use
getNiceEndIndex() |
java.util.List |
getItems() |
int |
getNextIndex()
Deprecated.
since 0.24. Please use
getNextStartIndex() |
int |
getNextStartIndex()
Returns the next start index.
|
int[] |
getNextStartIndexes() |
int |
getNiceEndIndex() |
int |
getNiceStartIndex() |
java.util.List |
getPage()
Returns a subset of the list of items passed in, based on startIndex and the page size
|
int |
getPageSize() |
int |
getPreviousIndex()
Deprecated.
since 0.24. Please use
getPreviousStartIndex() |
int |
getPreviousStartIndex()
Returns the previous start index.
|
int[] |
getPreviousStartIndexes() |
int |
getStartIndex()
Returns the start index.
|
int |
getStartIndexValue()
Always return the start index value, regardless of whether the pagination has any total.
|
int |
getTotal() |
void |
setItems(java.util.List items) |
void |
setPageSize(int pageSize) |
void |
setStartIndex(int startIndex) |
void |
setTotal(int total) |
public static int DEFAULT_PAGE_SIZE
public static int DEFAULT_COUNT_ON_EACH_PAGE
public PaginationSupport()
public PaginationSupport(int pageSize)
public int getCountOnEachPage()
getPageSize()public java.util.List getItems()
public void setItems(java.util.List items)
public void setStartIndex(int startIndex)
public int getNiceEndIndex()
public int getEndIndex()
getNiceEndIndex()public int getStartIndex()
public int getStartIndexValue()
public int getNextIndex()
getNextStartIndex()public int getNextStartIndex()
public int getPreviousIndex()
getPreviousStartIndex()public int getPreviousStartIndex()
public int[] getNextStartIndexes()
public int[] getPreviousStartIndexes()
public int getNiceStartIndex()
public java.util.List getPage()
public int getTotal()
public void setTotal(int total)
public void setPageSize(int pageSize)
public int getPageSize()
Copyright © 2014 Atlassian. All Rights Reserved.