com.pyxis.greenhopper.jira.boards.pagination
Class AbstractColumnPagination

java.lang.Object
  extended by com.pyxis.greenhopper.jira.boards.pagination.AbstractColumnPagination
All Implemented Interfaces:
ColumnPagination
Direct Known Subclasses:
ArchivedChartColumnPagination, AssigneeColumnPagination, ChartBoardColumnPagination, ComponentColumnPagination, ProjectBoardColumnPagination, VersionColumnPagination

public abstract class AbstractColumnPagination
extends java.lang.Object
implements ColumnPagination


Field Summary
protected  BoardContext boardContext
           
protected  java.util.List<PlanningBoard> boards
           
 
Fields inherited from interface com.pyxis.greenhopper.jira.boards.pagination.ColumnPagination
PAGE_SIZE
 
Constructor Summary
AbstractColumnPagination(BoardContext boardContext)
           
 
Method Summary
protected abstract  boolean allowUnset()
           
protected abstract  java.util.List<PlanningBoard> getBoards()
           
abstract  java.util.List<PlanningBoard> getBoardsForPage(int page)
          Retrieves the list of boards for the given page, according to PAGE_SIZE.
protected abstract  java.util.List<java.lang.String> getHierarchy(java.lang.String id)
           
protected  java.util.List<java.util.List<java.lang.String>> getPageContent()
           
 int getPageCount()
          Retrieve the number of pages
 int getPageFor(java.lang.String boardId)
          Retrieves the page number for the specified board
 java.lang.String getTooltips()
           
protected abstract  boolean useFullNamesInTooltip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boardContext

protected final BoardContext boardContext

boards

protected java.util.List<PlanningBoard> boards
Constructor Detail

AbstractColumnPagination

public AbstractColumnPagination(BoardContext boardContext)
Method Detail

getPageCount

public int getPageCount()
Description copied from interface: ColumnPagination
Retrieve the number of pages

Specified by:
getPageCount in interface ColumnPagination
Returns:
the number of pages

getPageFor

public int getPageFor(java.lang.String boardId)
Description copied from interface: ColumnPagination
Retrieves the page number for the specified board

Specified by:
getPageFor in interface ColumnPagination
Parameters:
boardId - the board
Returns:
the page number for the specified board

getTooltips

public java.lang.String getTooltips()
Specified by:
getTooltips in interface ColumnPagination

getBoardsForPage

public abstract java.util.List<PlanningBoard> getBoardsForPage(int page)
Description copied from interface: ColumnPagination
Retrieves the list of boards for the given page, according to PAGE_SIZE. If that page does not contain any boards, the returned list is empty.

Specified by:
getBoardsForPage in interface ColumnPagination
Parameters:
page - the requested page, starting with 1
Returns:
list of boards in that page, or empty list

getBoards

protected abstract java.util.List<PlanningBoard> getBoards()

getHierarchy

protected abstract java.util.List<java.lang.String> getHierarchy(java.lang.String id)

allowUnset

protected abstract boolean allowUnset()

useFullNamesInTooltip

protected abstract boolean useFullNamesInTooltip()

getPageContent

protected java.util.List<java.util.List<java.lang.String>> getPageContent()


Copyright © 2007-2013 Atlassian. All Rights Reserved.