jodd.servlet.tag
Class LoopTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by jodd.servlet.tag.LoopingTagSupport
          extended by jodd.servlet.tag.LoopTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class LoopTag
extends LoopingTagSupport

Loop tag performs enhanced looping in both directions.


Field Summary
protected  boolean autoDirection
           
protected  boolean isCount
           
protected  boolean isEndSpecified
           
protected  boolean isExclusive
           
 
Fields inherited from class jodd.servlet.tag.LoopingTagSupport
end, modulus, start, status, step
 
Constructor Summary
LoopTag()
           
 
Method Summary
 void doTag()
           
 void setAutoDirection(boolean autoDirection)
          Specifies if direction should be detected from the start and end value.
 void setCount(int count)
          Sets loop count.
 void setEnd(int end)
          Sets the end loop value (inclusive).
 void setTo(int to)
          Sets TO loop value (exclusive).
 
Methods inherited from class jodd.servlet.tag.LoopingTagSupport
loopBody, prepareStepDirection, prepareStepDirection, setModulus, setStart, setStatus, setStep
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isEndSpecified

protected boolean isEndSpecified

isExclusive

protected boolean isExclusive

isCount

protected boolean isCount

autoDirection

protected boolean autoDirection
Constructor Detail

LoopTag

public LoopTag()
Method Detail

setEnd

public void setEnd(int end)
Sets the end loop value (inclusive).

Overrides:
setEnd in class LoopingTagSupport

setCount

public void setCount(int count)
Sets loop count.


setTo

public void setTo(int to)
Sets TO loop value (exclusive).


setAutoDirection

public void setAutoDirection(boolean autoDirection)
Specifies if direction should be detected from the start and end value.


doTag

public void doTag()
           throws javax.servlet.jsp.JspException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException


Copyright © 2003-2012 Jodd Team