|
|||||||||
| 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.AbstractPaginationControlTag
org.hdpagination.web.taglib.GoToPageTag
public class GoToPageTag
This JSP Tag is used to render a text box along with either a submit button, hyperlink, or image link. The button, hyperlink, or image link is used to submit the request and navigate to the page specified in the text box. The decision to render the button, hyperlink, or image link relies on the following rule:
If property 'imgSrc' is specified, then an image link (<img> tag with enclosing <a> tag) is rendered. Otherwise, if property 'linkLabel' is specified, the hyperlink (text with enclosing tag <a>) is rendered. If none of these are specified, the button is rendered by default.
| Field Summary |
|---|
| Fields inherited from class org.hdpagination.web.taglib.AbstractPaginationControlTag |
|---|
actionId, resendParams |
| 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 | |
|---|---|
GoToPageTag()
|
|
| Method Summary | |
|---|---|
protected java.lang.String |
generateHTML(Page page)
Generate HTML code of Pagination Control |
void |
setAccesskey(java.lang.String accesskey)
Access key that, when pressed, transfers focus to this element (button, hyperlink, or image link). |
void |
setButtonLabel(java.lang.String buttonLabel)
Set label of submit button. |
void |
setExceedMaxPageAlert(java.lang.String exceedMaxPageAlert)
Set the alert message which is displayed when page number typed in the text box is greater than total pages. |
void |
setImgHeight(java.lang.String imgHeight)
Specifies the height (pixels %) of the image. |
void |
setImgSrc(java.lang.String imgSrc)
Absolute or relative URL of the image to be displayed for the image link. |
void |
setImgStyle(java.lang.String imgStyle)
Specifies an inline style for the image. |
void |
setImgStyleClass(java.lang.String imgStyleClass)
Specifies a classname for the image. |
void |
setImgWidth(java.lang.String imgWidth)
Specifies the width (pixels %) of the image. |
void |
setInvalidPageAlert(java.lang.String invalidPageAlert)
Set the alert message which is displayed when an invalid integer number is typed in the text box. |
void |
setLinkLabel(java.lang.String linkLabel)
Set the text label for the hyperlink if rendered. |
void |
setStyle(java.lang.String style)
Specifies an inline style for the element (button, hyperlink, or image link). |
void |
setStyleClass(java.lang.String styleClass)
Space-separated list of CSS style class(es) to be applied when the element (button, hyperlink, or image link) is rendered. |
void |
setTabindex(java.lang.String tabindex)
Position of the element (button, hyperlink or image link) in the tabbing order for the current document. |
void |
setTextAccesskey(java.lang.String textAccesskey)
Access key that, when pressed, transfers focus to this element (text box). |
void |
setTextMaxlength(java.lang.String textMaxlength)
The maximum number of characters that may be entered in the text box. |
void |
setTextSize(java.lang.String textSize)
The number of characters used to determine the width of the text box. |
void |
setTextStyle(java.lang.String textStyle)
Specifies an inline style for the text box. |
void |
setTextStyleClass(java.lang.String textStyleClass)
Space-separated list of CSS style class(es) to be applied to the text box. |
void |
setTextTabindex(java.lang.String textTabindex)
Position of text box in the tabbing order for the current document. |
void |
setTextTitle(java.lang.String textTitle)
Advisory title information about markup elements generated for the text box. |
void |
setTitle(java.lang.String title)
Advisory title information about markup elements generated for the element (button, hyperlink, or image link). |
| Methods inherited from class org.hdpagination.web.taglib.AbstractPaginationControlTag |
|---|
doEndTag, setActionId, setResendParams |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doStartTag, 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 GoToPageTag()
| Method Detail |
|---|
public void setButtonLabel(java.lang.String buttonLabel)
buttonLabel - public void setStyleClass(java.lang.String styleClass)
styleClass - public void setInvalidPageAlert(java.lang.String invalidPageAlert)
invalidPageAlert - public void setExceedMaxPageAlert(java.lang.String exceedMaxPageAlert)
exceedMaxPageAlert - public void setTabindex(java.lang.String tabindex)
tabindex - public void setTitle(java.lang.String title)
title - public void setLinkLabel(java.lang.String linkLabel)
linkLabel - public void setImgSrc(java.lang.String imgSrc)
imgSrc - public void setImgWidth(java.lang.String imgWidth)
imgWidth - public void setImgHeight(java.lang.String imgHeight)
imgHeight - public void setImgStyleClass(java.lang.String imgStyleClass)
imgStyleClass - public void setImgStyle(java.lang.String imgStyle)
imgStyle - public void setStyle(java.lang.String style)
style - public void setAccesskey(java.lang.String accesskey)
accesskey - public void setTextStyleClass(java.lang.String textStyleClass)
textStyleClass - public void setTextStyle(java.lang.String textStyle)
textStyle - public void setTextTabindex(java.lang.String textTabindex)
textTabindex - public void setTextTitle(java.lang.String textTitle)
textTitle - public void setTextSize(java.lang.String textSize)
textSize - public void setTextMaxlength(java.lang.String textMaxlength)
textMaxlength - public void setTextAccesskey(java.lang.String textAccesskey)
textAccesskey - protected java.lang.String generateHTML(Page page)
AbstractPaginationControlTag
generateHTML in class AbstractPaginationControlTagpage - page Page instance containing pagination related information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||