org.hdpagination.web.taglib
Class PagesDropdownTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.hdpagination.web.taglib.AbstractPaginationControlTag
          extended by org.hdpagination.web.taglib.PagesDropdownTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class PagesDropdownTag
extends AbstractPaginationControlTag

This JSP Tag is used to render a dropdown (<select>) with all available pages, which allows the user to navigate to different pages.

Since:
1.0
Author:
Liangfeng Ren
See Also:
Serialized Form

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
PagesDropdownTag()
           
 
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 (<select>).
 void setStyle(java.lang.String style)
          Specifies an inline style for the rendered dropdown (<select>).
 void setStyleClass(java.lang.String styleClass)
          Space-separated list of CSS style class(es) to be applied to the rendered dropdown (<select>).
 void setTabindex(java.lang.String tabindex)
          Position of the element (<select>) in the tabbing order for the current document.
 void setTitle(java.lang.String title)
          Advisory title information about markup elements generated for the element (<select>).
 
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

PagesDropdownTag

public PagesDropdownTag()
Method Detail

setTabindex

public void setTabindex(java.lang.String tabindex)
Position of the element (<select>) in the tabbing order for the current document. This value must be an integer between 0 and 32767. Refer to attribute 'tabindex' in <select> HTML tag.

Parameters:
tabindex -

setTitle

public void setTitle(java.lang.String title)
Advisory title information about markup elements generated for the element (<select>). Refer to attribute 'title' in <select> HTML tag.

Parameters:
title -

setStyleClass

public void setStyleClass(java.lang.String styleClass)
Space-separated list of CSS style class(es) to be applied to the rendered dropdown (<select>). Refer to attribute 'class' in <select> HTML tag.

Parameters:
styleClass -

setStyle

public void setStyle(java.lang.String style)
Specifies an inline style for the rendered dropdown (<select>). Refer to attribute 'style' in <select> HTML tag.

Parameters:
style -

setAccesskey

public void setAccesskey(java.lang.String accesskey)
Access key that, when pressed, transfers focus to this element (<select>). Refer to attribute 'accesskey' in <select> HTML tag.

Parameters:
accesskey -

generateHTML

protected java.lang.String generateHTML(Page page)
Description copied from class: AbstractPaginationControlTag
Generate HTML code of Pagination Control

Specified by:
generateHTML in class AbstractPaginationControlTag
Parameters:
page - page Page instance containing pagination related information.
Returns:


Copyright © 2008 HDPagination All Rights Reserved.