com.caucho.jsp
Class IteratorLoopSupportTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.caucho.jsp.IteratorLoopSupportTag
All Implemented Interfaces:
java.io.Serializable, LoopTag, LoopTagStatus, IterationTag, JspTag, Tag

public class IteratorLoopSupportTag
extends TagSupport
implements LoopTag, LoopTagStatus

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.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Constructor Summary
IteratorLoopSupportTag()
           
 
Method Summary
 java.lang.Integer getBegin()
           
 int getCount()
           
 java.lang.Object getCurrent()
          Returns the current value.
 java.lang.Integer getEnd()
           
 int getIndex()
           
 LoopTagStatus getLoopStatus()
          Returns the loop status
 Tag getParent()
          Returns the parent.
 java.lang.Integer getStep()
           
 void init(int begin, int end, int step, boolean beginSpecified, boolean endSpecified, boolean stepSpecified)
          Sets the initial values.
 boolean isFirst()
           
 boolean isLast()
           
 void setCurrent(java.lang.Object current, boolean hasNext)
          Sets the current value.
 void setParent(JspTag parent)
          Sets the parent as a JspTag
 void setParent(Tag parent)
          Sets the parent as a JspTag
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getValue, getValues, release, removeValue, setId, setPageContext, 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
doEndTag, doStartTag, release, setPageContext
 

Constructor Detail

IteratorLoopSupportTag

public IteratorLoopSupportTag()
Method Detail

setParent

public void setParent(JspTag parent)
Sets the parent as a JspTag


setParent

public void setParent(Tag parent)
Sets the parent as a JspTag

Specified by:
setParent in interface Tag
Overrides:
setParent in class TagSupport
Parameters:
parent - the tag to be used as a parent.

getParent

public Tag getParent()
Returns the parent.

Specified by:
getParent in interface Tag
Overrides:
getParent in class TagSupport

init

public void init(int begin,
                 int end,
                 int step,
                 boolean beginSpecified,
                 boolean endSpecified,
                 boolean stepSpecified)
Sets the initial values.


setCurrent

public void setCurrent(java.lang.Object current,
                       boolean hasNext)
Sets the current value.


getCurrent

public java.lang.Object getCurrent()
Returns the current value.

Specified by:
getCurrent in interface LoopTag
Specified by:
getCurrent in interface LoopTagStatus

getLoopStatus

public LoopTagStatus getLoopStatus()
Returns the loop status

Specified by:
getLoopStatus in interface LoopTag

getIndex

public int getIndex()
Specified by:
getIndex in interface LoopTagStatus

getCount

public int getCount()
Specified by:
getCount in interface LoopTagStatus

isFirst

public boolean isFirst()
Specified by:
isFirst in interface LoopTagStatus

isLast

public boolean isLast()
Specified by:
isLast in interface LoopTagStatus

getBegin

public java.lang.Integer getBegin()
Specified by:
getBegin in interface LoopTagStatus

getEnd

public java.lang.Integer getEnd()
Specified by:
getEnd in interface LoopTagStatus

getStep

public java.lang.Integer getStep()
Specified by:
getStep in interface LoopTagStatus