Home » displaytag-1.1.1-src » org » displaytag » pagination » [javadoc | source]
org.displaytag.pagination
public class: Pagination [javadoc | source]
java.lang.Object
   org.displaytag.pagination.Pagination
Helper class for generation of paging banners.
Constructor:
 public Pagination(Href baseHref,
    String pageParameter) 
    Constructor for Pagination.
    Parameters:
    baseHref - Href used for links
    pageParameter - name for the page parameter
Method from org.displaytag.pagination.Pagination Summary:
addPage,   getFirst,   getFormattedBanner,   getLast,   getNext,   getPrevious,   isFirst,   isLast,   isOnePage,   setCurrent,   setFirst,   setLast,   setNext,   setPrevious,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.displaytag.pagination.Pagination Detail:
 public  void addPage(int number,
    boolean isSelected) 
    Adds a page.
 public Integer getFirst() 
    Gets the number of the first page.
 public String getFormattedBanner(String numberedPageFormat,
    String numberedPageSelectedFormat,
    String numberedPageSeparator,
    String fullBanner) 
    Returns the appropriate banner for the pagination.
 public Integer getLast() 
    Gets the number of the last page.
 public Integer getNext() 
    Gets the number of the next page.
 public Integer getPrevious() 
    Gets the number of the previous page.
 public boolean isFirst() 
    first page selected?
 public boolean isLast() 
    last page selected?
 public boolean isOnePage() 
    only one page?
 public  void setCurrent(Integer current) 
    Sets the number of the current page.
 public  void setFirst(Integer first) 
    Sets the number of the first page.
 public  void setLast(Integer last) 
    Sets the number of the last page.
 public  void setNext(Integer next) 
    Sets the number of the next page.
 public  void setPrevious(Integer previous) 
    Sets the number of the previous page.
 public String toString()