org.rhq.enterprise.gui.legacy.taglib
Class Pagination

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.rhq.enterprise.gui.legacy.taglib.Pagination
All Implemented Interfaces:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Pagination
extends javax.servlet.jsp.tagext.TagSupport

Generate pagination access for a provided PageList

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Pagination()
           
 
Method Summary
protected  String createDots(int sets)
          Returns a string containing the nagivation bar that allows the user to move between pages within the list.
protected  String createPagination()
           
protected  String createSetListSelect(int sets)
          Returns a string containing the nagivation bar that allows the user to move between pages within the list.
 int doEndTag()
           
 int doStartTag()
           
 String getAction()
           
 org.rhq.core.domain.util.PageList getPageList()
           
 String getPostfix()
           
 boolean isIncludeFirstLast()
           
 boolean isIncludePreviousNext()
           
 void release()
           
static String removeExistingPaginationParams(String originalActionString, String postfix)
           
 void setAction(String action)
           
 void setIncludeFirstLast(boolean includeFirstLast)
           
 void setIncludePreviousNext(boolean includePreviousNext)
           
 void setPageList(org.rhq.core.domain.util.PageList pageList)
           
 void setPostfix(String postfix)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pagination

public Pagination()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

doStartTag

public final int doStartTag()
                     throws javax.servlet.jsp.JspException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

createPagination

protected String createPagination()
                           throws Exception
Throws:
Exception

createSetListSelect

protected String createSetListSelect(int sets)
Returns a string containing the nagivation bar that allows the user to move between pages within the list.

The urlFormatString should be a URL that looks like the following:

http://.../somepage.page?pn={0}


createDots

protected String createDots(int sets)
Returns a string containing the nagivation bar that allows the user to move between pages within the list.

The urlFormatString should be a URL that looks like the following:

http://.../somepage.page?pn={0}


removeExistingPaginationParams

public static String removeExistingPaginationParams(String originalActionString,
                                                    String postfix)

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getPageList

public org.rhq.core.domain.util.PageList getPageList()

setPageList

public void setPageList(org.rhq.core.domain.util.PageList pageList)

getAction

public String getAction()

setAction

public void setAction(String action)

isIncludeFirstLast

public boolean isIncludeFirstLast()

setIncludeFirstLast

public void setIncludeFirstLast(boolean includeFirstLast)

isIncludePreviousNext

public boolean isIncludePreviousNext()

setIncludePreviousNext

public void setIncludePreviousNext(boolean includePreviousNext)

getPostfix

public String getPostfix()

setPostfix

public void setPostfix(String postfix)


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.