org.tigris.scarab.util
Class ScarabPaginatedList

java.lang.Object
  extended byorg.tigris.scarab.util.ScarabPaginatedList

public class ScarabPaginatedList
extends java.lang.Object


Constructor Summary
ScarabPaginatedList()
          Constructor
ScarabPaginatedList(java.util.List l, int size, int pageNum, int perPage)
          Constructor which sets things up for a 'ready' list.
 
Method Summary
 java.util.List getList()
          Method to get the portion of the list that is currently viewable (inside the window)
 int getNextPageNumber()
          Method to return the next page number
 int getNumberOfPages()
          Method to return the total number of pages in this list.
 int getPageNumber()
          Method to get the current page number.
 int getPrevPageNumber()
          Method to return the previous page number.
 int getResultsPerPage()
          Method to get the number of results per page.
 int getTotalListSize()
          Method to return the size of the entire list, not just the part that is currently 'to be' displayed.
 void setCurrentPageNumber(int pageNum)
          Method to set the current page number.
 void setList(java.util.List list)
          Method to set the current list window.
 void setTotalListSize(int size)
          Method to set the TotalListSize.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScarabPaginatedList

public ScarabPaginatedList()
Constructor


ScarabPaginatedList

public ScarabPaginatedList(java.util.List l,
                           int size,
                           int pageNum,
                           int perPage)
Constructor which sets things up for a 'ready' list.

Method Detail

getTotalListSize

public int getTotalListSize()
Method to return the size of the entire list, not just the part that is currently 'to be' displayed.


getNumberOfPages

public int getNumberOfPages()
Method to return the total number of pages in this list.


getPageNumber

public int getPageNumber()
Method to get the current page number.


getPrevPageNumber

public int getPrevPageNumber()
Method to return the previous page number.


getNextPageNumber

public int getNextPageNumber()
Method to return the next page number


getResultsPerPage

public int getResultsPerPage()
Method to get the number of results per page.


getList

public java.util.List getList()
Method to get the portion of the list that is currently viewable (inside the window)


setTotalListSize

public void setTotalListSize(int size)
Method to set the TotalListSize.


setCurrentPageNumber

public void setCurrentPageNumber(int pageNum)
Method to set the current page number.


setList

public void setList(java.util.List list)
Method to set the current list window.



Copyright © 2000-2004 Tigris.org. All Rights Reserved.