com.acsinet_solutions.cetia4.tags.pager
Class AbstractBlockConditionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.jstl.core.ConditionalTagSupport
          extended by com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
              extended by com.acsinet_solutions.cetia4.tags.pager.AbstractBlockConditionTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
Direct Known Subclasses:
AbstractBlockTag, IfFirstTag, IfLastTag

public abstract class AbstractBlockConditionTag
extends LogConditionalTagSupport

Base class for ifFirst and ifLast tags.

Author:
Santiago Arriaga
See Also:
IfFirstTag, IfLastTag, 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
AbstractBlockConditionTag()
           
 
Method Summary
protected  boolean checkBlock(PagingBlock block)
          Check the current block and return a response.
protected  boolean condition()
           
protected abstract  PagingBlock getBlock(PagedResults results)
          Return the block that is requested.
 
Methods inherited from class com.acsinet_solutions.cetia4.tags.support.LogConditionalTagSupport
doCatch, doFinally, getConfiguration, getLocale, getLogger, getPortalPath, getRequest, getServletContext, getSession
 
Methods inherited from class javax.servlet.jsp.jstl.core.ConditionalTagSupport
doStartTag, release, setScope, setVar
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, 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
 

Constructor Detail

AbstractBlockConditionTag

public AbstractBlockConditionTag()
Method Detail

condition

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

checkBlock

protected boolean checkBlock(PagingBlock block)
Check the current block and return a response.


getBlock

protected abstract PagingBlock getBlock(PagedResults results)
Return the block that is requested. returns null if the block does not exist and so the tag body won´t be evaluated.