com.acsinet_solutions.cetia4.tags.pager
Class AbstractBlockIteratorTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.LoopTagSupport
          extended by com.acsinet_solutions.cetia4.tags.support.LogLoopTagSupport
              extended by com.acsinet_solutions.cetia4.tags.pager.AbstractBlockIteratorTag
All Implemented Interfaces:
BlockAccessor, java.io.Serializable, javax.servlet.jsp.jstl.core.LoopTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
IterateNextTag, IteratePreviousTag

public abstract class AbstractBlockIteratorTag
extends LogLoopTagSupport
implements BlockAccessor

Base class for block iterator classes.

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com
See Also:
IterateNextTag, IteratePreviousTag, Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport
begin, beginSpecified, end, endSpecified, itemId, statusId, step, stepSpecified
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
AbstractBlockIteratorTag()
           
 
Method Summary
 int doEndTag()
          Free resources
protected abstract  java.util.List<PagingBlock> getBlocks(PagedResults results)
          Get a list of blocks over which the iteration will be performed.
 PagingBlock getPagingBlock()
          Return the current paging block in scope
protected  boolean hasNext()
           
protected  java.lang.Object next()
           
protected  void prepare()
           
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogLoopTagSupport
doCatch, getConfiguration, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession
 
Methods inherited from class javax.servlet.jsp.jstl.core.LoopTagSupport
doAfterBody, doFinally, doStartTag, getCurrent, getLoopStatus, release, setVar, setVarStatus, validateBegin, validateEnd, validateStep
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

AbstractBlockIteratorTag

public AbstractBlockIteratorTag()
Method Detail

prepare

protected final void prepare()
                      throws javax.servlet.jsp.JspTagException
Specified by:
prepare in class javax.servlet.jsp.jstl.core.LoopTagSupport
Throws:
javax.servlet.jsp.JspTagException

hasNext

protected final boolean hasNext()
                         throws javax.servlet.jsp.JspTagException
Specified by:
hasNext in class javax.servlet.jsp.jstl.core.LoopTagSupport
Throws:
javax.servlet.jsp.JspTagException

next

protected final java.lang.Object next()
                               throws javax.servlet.jsp.JspTagException
Specified by:
next in class javax.servlet.jsp.jstl.core.LoopTagSupport
Throws:
javax.servlet.jsp.JspTagException

doEndTag

public final int doEndTag()
                   throws javax.servlet.jsp.JspException
Free resources

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Throws:
javax.servlet.jsp.JspException

getPagingBlock

public PagingBlock getPagingBlock()
Description copied from interface: BlockAccessor
Return the current paging block in scope

Specified by:
getPagingBlock in interface BlockAccessor

getBlocks

protected abstract java.util.List<PagingBlock> getBlocks(PagedResults results)
Get a list of blocks over which the iteration will be performed.