org.mmbase.bridge.jsp.taglib
Class ListConditionTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by org.mmbase.bridge.jsp.taglib.ContextReferrerTag
              extended by org.mmbase.bridge.jsp.taglib.ListReferrerTag
                  extended by org.mmbase.bridge.jsp.taglib.ListConditionTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, TryCatchFinally, Condition
Direct Known Subclasses:
ListChangedTag, ListEvenTag, ListFirstTag, ListLastTag, ListOddTag

public class ListConditionTag
extends ListReferrerTag
implements Condition

This tag can be used inside the list tag. The body will be evaluated depending on the value of the index of the list.

Version:
$Id: ListConditionTag.java 38382 2009-09-03 21:41:33Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Field Summary
protected static int CONDITION_CHANGED
           
protected static int CONDITION_EVEN
           
protected static int CONDITION_FIRST
           
protected static int CONDITION_LAST
           
protected static int CONDITION_ODD
           
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ListReferrerTag
parentListId
 
Fields inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
contextId, EVAL_BODY, helper, id, pageContextTag, referid, writerid
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
ListConditionTag()
           
 
Method Summary
 int doAfterBody()
           
 int doStartTag()
           
protected  boolean getInverse()
           
protected  int getValue()
           
 void setInverse(String b)
          This attribute inverses the sense of the condition.
 void setValue(String v)
           
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ListReferrerTag
getList, getLoopTag, setList
 
Methods inherited from class org.mmbase.bridge.jsp.taglib.ContextReferrerTag
appendMoreParameters, doCatch, doEndTag, doFinally, fillStandardParameters, findLoopOrQuery, findParentTag, findParentTag, findWriter, findWriter, getAttribute, getAttribute, getAttributeBoolean, getAttributeInteger, getAttributeInteger, getAttributeValue, getContentTag, getContextProvider, getContextTag, getCurrentBlock, getDefaultLocale, getEscapedValue, getFormTag, getId, getLocale, getLocaleFromContext, getObject, getObjectConditional, getPageContext, getPageContextTag, getQuery, getReferid, getString, getTaglibVersion, getThreadPageContext, getTimeZone, getWriterValue, haveBody, release, setContext, setEscape, setId, setJspvar, setListdelimiter, setPageContext, setPageContextOnly, setReferid, setVartype, setWrite, setWriter
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getParent, getValue, getValues, removeValue, 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, setParent
 

Field Detail

CONDITION_FIRST

protected static final int CONDITION_FIRST
See Also:
Constant Field Values

CONDITION_LAST

protected static final int CONDITION_LAST
See Also:
Constant Field Values

CONDITION_EVEN

protected static final int CONDITION_EVEN
See Also:
Constant Field Values

CONDITION_ODD

protected static final int CONDITION_ODD
See Also:
Constant Field Values

CONDITION_CHANGED

protected static final int CONDITION_CHANGED
See Also:
Constant Field Values
Constructor Detail

ListConditionTag

public ListConditionTag()
Method Detail

setValue

public void setValue(String v)
              throws JspTagException
Throws:
JspTagException

getValue

protected int getValue()
                throws JspTagException
Throws:
JspTagException

setInverse

public void setInverse(String b)
                throws JspTagException
Description copied from interface: Condition
This attribute inverses the sense of the condition.

Specified by:
setInverse in interface Condition
Throws:
JspTagException

getInverse

protected boolean getInverse()
                      throws JspTagException
Throws:
JspTagException

doStartTag

public int doStartTag()
               throws JspTagException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspTagException

doAfterBody

public int doAfterBody()
                throws JspTagException
Specified by:
doAfterBody in interface IterationTag
Overrides:
doAfterBody in class BodyTagSupport
Throws:
JspTagException


MMBase 2.0-SNAPSHOT - null