Modifier and Type | Field and Description |
---|---|
protected int |
end |
protected int |
modulus |
protected int |
start |
protected java.lang.String |
status |
protected int |
step |
Constructor and Description |
---|
LoopingTagSupport() |
Modifier and Type | Method and Description |
---|---|
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.
|
protected int start
protected int end
protected int step
protected java.lang.String status
protected int modulus
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
Copyright © 2003-present Jodd Team