org.rhq.enterprise.gui.legacy.taglib
Class Pagination
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
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
| 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 |
| 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 |
Pagination
public Pagination()
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.