org.infoglue.cms.entities.publishing
Class EditionBrowser

java.lang.Object
  extended by org.infoglue.cms.entities.publishing.EditionBrowser
All Implemented Interfaces:
java.io.Serializable

public class EditionBrowser
extends java.lang.Object
implements java.io.Serializable

This is a helper class that will provide convenience methods for getting information about the page browsing aspect of Editions. This could easily be made generic and should if we find the need to make more paginated pages.

Author:
Frank Febbraro
See Also:
Serialized Form

Constructor Summary
EditionBrowser(int totalEditions, int pageSize, int startIndex)
           
 
Method Summary
 int getCurrentPage()
           
 java.util.List getEditions()
           
 int getNextPageIndex()
          Returns the starting index of the next page
 int getNextPageSize()
          Returns the number of editions on the next page
 int getPageSize()
           
 int getPreviousPageIndex()
          Returns the starting index of the previous page
 int getPreviousPageSize()
          Returns the number of editions on the previous page
 int getStartIndex()
           
 int getTotalEditions()
           
 int getTotalPages()
           
 boolean hasNextPage()
          Returns true if there will be editions on the next page, false otherwise
 boolean hasPreviousPage()
          Returns true if there will be editions on the previous page, false otherwise
 void setEditions(java.util.List c)
           
 void setPageSize(int i)
           
 void setStartIndex(int i)
           
 void setTotalEditions(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditionBrowser

public EditionBrowser(int totalEditions,
                      int pageSize,
                      int startIndex)
Method Detail

getTotalEditions

public int getTotalEditions()

setTotalEditions

public void setTotalEditions(int i)

getStartIndex

public int getStartIndex()

setStartIndex

public void setStartIndex(int i)

getPageSize

public int getPageSize()

setPageSize

public void setPageSize(int i)

getEditions

public java.util.List getEditions()

setEditions

public void setEditions(java.util.List c)

getTotalPages

public int getTotalPages()

getCurrentPage

public int getCurrentPage()

hasPreviousPage

public boolean hasPreviousPage()
Returns true if there will be editions on the previous page, false otherwise


hasNextPage

public boolean hasNextPage()
Returns true if there will be editions on the next page, false otherwise


getPreviousPageSize

public int getPreviousPageSize()
Returns the number of editions on the previous page


getNextPageSize

public int getNextPageSize()
Returns the number of editions on the next page


getPreviousPageIndex

public int getPreviousPageIndex()
Returns the starting index of the previous page


getNextPageIndex

public int getNextPageIndex()
Returns the starting index of the next page



Copyright © 2005 InfoGlue.org All Rights Reserved.