com.atlassian.confluence.pages
Class ManualTotalPaginationSupport

java.lang.Object
  extended by bucket.core.actions.PaginationSupport
      extended by 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.


Field Summary
 
Fields inherited from class bucket.core.actions.PaginationSupport
DEFAULT_COUNT_ON_EACH_PAGE, DEFAULT_PAGE_SIZE
 
Constructor Summary
ManualTotalPaginationSupport()
           
ManualTotalPaginationSupport(int pageSize)
           
 
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
 

Constructor Detail

ManualTotalPaginationSupport

public ManualTotalPaginationSupport()

ManualTotalPaginationSupport

public ManualTotalPaginationSupport(int pageSize)
Method Detail

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.