com.pyxis.greenhopper.jira.util
Class TBPageFilter

java.lang.Object
  extended by com.atlassian.jira.web.bean.PagerFilter
      extended by com.pyxis.greenhopper.jira.util.TBPageFilter
All Implemented Interfaces:
java.io.Serializable

public class TBPageFilter
extends com.atlassian.jira.web.bean.PagerFilter

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.web.bean.PagerFilter
pages
 
Constructor Summary
TBPageFilter()
           
TBPageFilter(int max, int pagine)
           
 
Method Summary
 java.util.List generatePages(int total)
           
 java.util.List getCurrentPageFromList(java.util.List itemsCol)
           
 com.atlassian.jira.web.bean.Page getLastPage()
           
 int getMaxed()
           
 java.util.List getPages(int total)
           
 java.util.List<com.atlassian.jira.web.bean.Page> restrictPages(java.util.Collection pages, int size)
          Restrict the pagers to a certain number of pages on either side of the current page.
 
Methods inherited from class com.atlassian.jira.web.bean.PagerFilter
generatePages, getCurrentPage, getEnd, getMax, getNextStart, getPages, getPages, getPageSize, getPreviousStart, getStart, getUnlimitedFilter, newPageAlignedFilter, setMax, setStart, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TBPageFilter

public TBPageFilter()

TBPageFilter

public TBPageFilter(int max,
                    int pagine)
Method Detail

getMaxed

public int getMaxed()

getPages

public java.util.List getPages(int total)

generatePages

public java.util.List generatePages(int total)

restrictPages

public java.util.List<com.atlassian.jira.web.bean.Page> restrictPages(java.util.Collection pages,
                                                                      int size)
Restrict the pagers to a certain number of pages on either side of the current page.

The number of pages to list is stored in PagerFilter.PAGES_TO_LIST.

Overrides:
restrictPages in class com.atlassian.jira.web.bean.PagerFilter

getCurrentPageFromList

public java.util.List getCurrentPageFromList(java.util.List itemsCol)

getLastPage

public com.atlassian.jira.web.bean.Page getLastPage()


Copyright © 2007-2013 Atlassian. All Rights Reserved.