com.atlassian.bamboo.filter
Class Pager<T>

java.lang.Object
  extended by com.atlassian.bamboo.filter.Pager<T>

public class Pager<T>
extends java.lang.Object


Field Summary
static int DEFAULT_PAGE_SIZE
           
static java.lang.String PAGE_INDEX
           
static java.lang.String PAGE_SIZE
           
 
Constructor Summary
Pager()
           
Pager(int pageSize)
           
 
Method Summary
 java.lang.String getFirstPageUrl()
           
 int getLastPageIndex()
           
 java.lang.String getLastPageUrl()
           
 java.lang.String getNextPageUrl()
           
 Page<T> getPage()
           
 int getPageIndex()
           
 int getPageSize()
           
 java.lang.String getPreviousPageUrl()
           
 int getTotalNumberOfPages()
           
 int getTotalSize()
           
 boolean isHasNextPage()
           
 boolean isHasPreviousPage()
           
 void setPage(Page<T> page)
           
 void setPageFromFilteredList(java.util.List<T> results, int totalSize)
           
 void setPageFromList(java.util.List<T> results)
           
 void setPageIndex(int pageIndex)
           
 void setPageSize(int pageSize)
           
 void setUrlString(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PAGE_SIZE

public static final int DEFAULT_PAGE_SIZE
See Also:
Constant Field Values

PAGE_INDEX

public static final java.lang.String PAGE_INDEX
See Also:
Constant Field Values

PAGE_SIZE

public static final java.lang.String PAGE_SIZE
See Also:
Constant Field Values
Constructor Detail

Pager

public Pager()

Pager

public Pager(int pageSize)
Method Detail

setPageFromList

public void setPageFromList(java.util.List<T> results)

setPageFromFilteredList

public void setPageFromFilteredList(java.util.List<T> results,
                                    int totalSize)

setUrlString

public void setUrlString(java.lang.String url)

getFirstPageUrl

public java.lang.String getFirstPageUrl()

getPreviousPageUrl

public java.lang.String getPreviousPageUrl()

getNextPageUrl

public java.lang.String getNextPageUrl()

getLastPageUrl

public java.lang.String getLastPageUrl()

getLastPageIndex

public int getLastPageIndex()

getTotalSize

public int getTotalSize()

getTotalNumberOfPages

public int getTotalNumberOfPages()

isHasNextPage

public boolean isHasNextPage()

isHasPreviousPage

public boolean isHasPreviousPage()

getPage

public Page<T> getPage()

setPage

public void setPage(Page<T> page)

getPageSize

public int getPageSize()

setPageSize

public void setPageSize(int pageSize)

getPageIndex

public int getPageIndex()

setPageIndex

public void setPageIndex(int pageIndex)


Copyright © 2011 Atlassian. All Rights Reserved.