|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
jodd.servlet.tag.LoopingTagSupport
public abstract class LoopingTagSupport
Support for looping tags.
| Field Summary | |
|---|---|
protected int |
end
|
protected int |
modulus
|
protected int |
start
|
protected java.lang.String |
status
|
protected int |
step
|
| Constructor Summary | |
|---|---|
LoopingTagSupport()
|
|
| Method Summary | |
|---|---|
protected void |
loopBody()
Loops body. |
protected void |
prepareStepDirection()
Shorter variant of prepareStepDirection(boolean, boolean). |
protected void |
prepareStepDirection(boolean autoDirection,
boolean checkDirection)
Prepares step value. |
void |
setEnd(int end)
Sets the end loop value (inclusive). |
void |
setModulus(int modulus)
Specifies modulus value for the looping status. |
void |
setStart(int start)
Sets the first loop value (inclusive). |
void |
setStatus(java.lang.String status)
Specifies status variable name. |
void |
setStep(int step)
Specifies the loop step. |
| Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
|---|
doTag, 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 |
|---|
protected int start
protected int end
protected int step
protected java.lang.String status
protected int modulus
| Constructor Detail |
|---|
public LoopingTagSupport()
| Method Detail |
|---|
public void setStart(int start)
public void setEnd(int end)
public void setStep(int step)
public void setStatus(java.lang.String status)
status variable name. If omitted, status will not be used.
public void setModulus(int modulus)
protected void prepareStepDirection()
prepareStepDirection(boolean, boolean).
protected void prepareStepDirection(boolean autoDirection,
boolean checkDirection)
If autoDirection flag is true then it is assumed that step is positive,
and that direction (step sign) should be detected from start and end value.
If checkDirection flag is true than it checks loop direction (step sign) based on
start and end value. Throws an exception if direction is invalid.
If autoDirection is set, direction checking is skipped.
protected void loopBody()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||