org.hdpagination.web.taglib
Class DisplayRecordScopeTag

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

public class DisplayRecordScopeTag
extends AbstractDisplayTag

This JSP tag is used to display the scope of current page records - that is, index (starting from 1) of the first and last records in the current page. For example, if the page size is defined to 10, then it will display "11 - 20" for the second page if there are more than (including) 20 records totally in the search result.

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

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
DisplayRecordScopeTag()
           
 
Method Summary
 java.lang.String getContent2Display(Page page)
          Generate content to diplay in the page
 
Methods inherited from class org.hdpagination.web.taglib.AbstractDisplayTag
doEndTag, doStartTag, getActionId, setActionId
 
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

DisplayRecordScopeTag

public DisplayRecordScopeTag()
Method Detail

getContent2Display

public java.lang.String getContent2Display(Page page)
Description copied from class: AbstractDisplayTag
Generate content to diplay in the page

Parameters:
page - Page instance containing pagination related information.
Returns:
content to display


Copyright © 2008 HDPagination All Rights Reserved.