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

java.lang.Object
  extended by com.pyxis.greenhopper.jira.boards.pagination.AbstractColumnPagination
      extended by com.pyxis.greenhopper.jira.boards.pagination.ProjectBoardColumnPagination
All Implemented Interfaces:
ColumnPagination

public class ProjectBoardColumnPagination
extends AbstractColumnPagination


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

Constructor Detail

ProjectBoardColumnPagination

public ProjectBoardColumnPagination(BoardContext boardContext)
Method Detail

getBoardsForPage

public 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
Specified by:
getBoardsForPage in class AbstractColumnPagination
Parameters:
page - the requested page, starting with 1
Returns:
list of boards in that page, or empty list

getPageCount

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

Specified by:
getPageCount in interface ColumnPagination
Overrides:
getPageCount in class AbstractColumnPagination
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
Overrides:
getPageFor in class AbstractColumnPagination
Parameters:
boardId - the board
Returns:
the page number for the specified board

allowUnset

protected boolean allowUnset()
Specified by:
allowUnset in class AbstractColumnPagination

getBoards

protected java.util.List<PlanningBoard> getBoards()
Specified by:
getBoards in class AbstractColumnPagination

getHierarchy

protected java.util.LinkedList<java.lang.String> getHierarchy(java.lang.String id)
Specified by:
getHierarchy in class AbstractColumnPagination

useFullNamesInTooltip

protected boolean useFullNamesInTooltip()
Specified by:
useFullNamesInTooltip in class AbstractColumnPagination


Copyright © 2007-2013 Atlassian. All Rights Reserved.