org.hdpagination.web.taglib
Class PaginationLinkTag

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

public class PaginationLinkTag
extends AbstractPaginationControlTag

This JSP Tag is used to render pagination navigation links (e.g. Previous Next 1 2 3 4 5 6 7 8 First Last). Layout of the links is configurable via injecting different implementation instance of PageLinksPattern interface into GlobalConfig. There are some pattern implementation classes available to choose in package org.hdpagination.config.pattern

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
PaginationLinkTag()
           
 
Method Summary
protected  java.lang.String generateHTML(Page page)
          Generate HTML code of Pagination Control
 void setStyle(java.lang.String style)
          Specifies an inline style for the rendered hyperlinks (<a>).
 void setStyleClass(java.lang.String styleClass)
          Space-separated list of CSS style class(es) to be applied to the rendered hyperlinks (<a>).
 
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

PaginationLinkTag

public PaginationLinkTag()
Method Detail

setStyleClass

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

Parameters:
styleClass -

setStyle

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

Parameters:
style -

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.