|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.hdpagination.web.taglib.SortByTag
public class SortByTag
This JSP Tag is used to apply a hyperlink (<a>) to the column header in the search results table. This allows the user to sort the search results by this column. By default, when the column header is clicked and the current search result is not sorted by that column, then the result will be displayed in ascending order. The search results will be toggled between ascending and descending order every time the column header is clicked.
| 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 | |
|---|---|
SortByTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
|
int |
doStartTag()
|
void |
setAccesskey(java.lang.String accesskey)
Access key that, when pressed, transfers focus to this element (hyperlink <a>). |
void |
setActionId(java.lang.String actionId)
Bean identifier of the corresponding PaginationAction instance declared in Spring application context. |
void |
setResendParams(java.lang.String resendParams)
This property is used to indicate whether the parameters of the previous http request should be sent again. |
void |
setSortedColumn(java.lang.String sortedColumn)
Set property of sortedColumn It will be appended to "order by" clause of SQL or ORM statement. |
void |
setStyle(java.lang.String style)
Specifies an inline style for the rendered hyperlink (<a>). |
void |
setStyleClass(java.lang.String styleClass)
Space-separated list of CSS style class(es) to be applied to the rendered hyperlink (<a>). |
void |
setTabindex(java.lang.String tabindex)
Position of the element (hyperlink <a>) in the tabbing order for the current document. |
void |
setTitle(java.lang.String title)
Advisory title information about markup elements generated for the element (hyperlink <a>). |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, 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 |
|---|
public SortByTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic void setSortedColumn(java.lang.String sortedColumn)
sortedColumn - public void setActionId(java.lang.String actionId)
actionId - public void setResendParams(java.lang.String resendParams)
The types of pagination control include:
1) pagination navigation links (e.g. Previous Next 1 2 3 4 5 6 7 8 First Last), rendered by <pageLinks> tag
2) available pages dropdown, rendered by <pagesDropdown> tag
3) goto page text field and submit button, rendered by <gotoPage> tag
4) sort hyperlink, rendered by <sortBy> tag
5) select sort dropdown, rendered by <selectSortBy> tag
resendParams - public void setTabindex(java.lang.String tabindex)
tabindex - public void setTitle(java.lang.String title)
title - public void setStyleClass(java.lang.String styleClass)
styleClass - public void setStyle(java.lang.String style)
style - public void setAccesskey(java.lang.String accesskey)
accesskey -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||