|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IteratingTag
Define the behavior of a JET2 iterating tag. An iterating tag:
doInitializeLoop(TagInfo, JET2Context)
and
doEvalLoopCondition(TagInfo, JET2Context)
.CustomTag
to initialize the tagdoInitializeLoop(TagInfo, JET2Context)
is called to allow the tag to determine the loop data.doEvalLoopCondition(TagInfo, JET2Context)
is called multiple times to traverse the loop data.doEvalLoopCondition(TagInfo, JET2Context)
returns true
, then the body processing
methods are called as described in ContainerTag
.
Method Summary | |
---|---|
boolean |
doEvalLoopCondition(TagInfo td,
JET2Context context)
Determine whether the tag should do another iteration, and, if so, setup any data for the iteration. |
void |
doInitializeLoop(TagInfo td,
JET2Context context)
Initialize any data required to determine how many times the tag should iterate. |
Methods inherited from interface org.eclipse.jet.taglib.ContainerTag |
---|
doAfterBody, doBeforeBody, setBodyContent |
Methods inherited from interface org.eclipse.jet.taglib.EmptyTag |
---|
doAction |
Method Detail |
---|
boolean doEvalLoopCondition(TagInfo td, JET2Context context) throws JET2TagException
doInitializeLoop(TagInfo, JET2Context)
.
td
- the tag information (attribute values, etc)context
- the JET2 execution context.
true
if another iteration is to be performed,
false
otherwise.
JET2TagException
- if the method cannot complete successfully. Note
that this will terminate the tag loop.void doInitializeLoop(TagInfo td, JET2Context context) throws JET2TagException
doEvalLoopCondition(TagInfo, JET2Context)
.
td
- the tag data (attribute values, etc)context
- the JET2 exectuion context
JET2TagException
- if the method cannot execute successfully.
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |