com.atlassian.confluence.pages
Class ManualTotalPaginationSupport

java.lang.Object
  extended by bucket.core.actions.PaginationSupport
      extended by com.atlassian.confluence.pages.ManualTotalPaginationSupport

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()
           
 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()
Overrides:
getTotal in class PaginationSupport

setTotal

public void setTotal(int total)
Overrides:
setTotal in class PaginationSupport


Copyright © 2003-2010 Atlassian. All Rights Reserved.