com.atlassian.confluence.pages
Class ManualTotalPaginationSupport
java.lang.Object
bucket.core.actions.PaginationSupport
com.atlassian.confluence.pages.ManualTotalPaginationSupport
- All Implemented Interfaces:
- PaginationSupport
public class ManualTotalPaginationSupport
- extends PaginationSupport
This class allows us to set the total number of items without
reading the size of the items list. This means we don't have
to load all the items to determine the size.
Method Summary |
int |
getTotal()
Returns the total number of items in the list |
void |
setTotal(int total)
|
Methods inherited from class bucket.core.actions.PaginationSupport |
getCountOnEachPage, getEndIndex, getItems, getNextIndex, getNextStartIndex, getNextStartIndexes, getNiceEndIndex, getNiceStartIndex, getPage, getPageSize, getPreviousIndex, getPreviousStartIndex, getPreviousStartIndexes, getStartIndex, getStartIndexValue, setItems, setPageSize, setStartIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManualTotalPaginationSupport
public ManualTotalPaginationSupport()
ManualTotalPaginationSupport
public ManualTotalPaginationSupport(int pageSize)
getTotal
public int getTotal()
- Description copied from interface:
PaginationSupport
- Returns the total number of items in the list
- Specified by:
getTotal
in interface PaginationSupport
- Overrides:
getTotal
in class PaginationSupport
- Returns:
- total number of items in the list
setTotal
public void setTotal(int total)
- Overrides:
setTotal
in class PaginationSupport
Copyright © 2003-2011 Atlassian. All Rights Reserved.