|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.opensymphony.webwork.components.Component
com.opensymphony.webwork.components.MergeIterator
public class MergeIterator
Component for MergeIteratorTag, which job is to merge iterators and successive call to the merged iterator will cause each merge iterator to have a chance to expose its element, subsequently next call will allow the next iterator to expose its element. Once the last iterator is done exposing its element, the first iterator is allowed to do so again (unless it is exhausted of entries).
Internally the task are delegated to MergeIteratorFilter
Example if there are 3 lists being merged, each list have 3 entries, the following will be the logic.
MergeIteratorFilter
,
MergeIteratorTag
Field Summary |
---|
Fields inherited from class com.opensymphony.webwork.components.Component |
---|
COMPONENT_STACK, id, parameters, stack |
Constructor Summary | |
---|---|
MergeIterator(OgnlValueStack stack)
|
Method Summary | |
---|---|
void |
addParameter(Object value)
Adds the given value as a parameter to the outer tag. |
boolean |
end(Writer writer,
String body)
Callback for the end tag of this component. |
void |
setId(String id)
the id where the resultant merged iterator will be stored in the stack's context |
boolean |
start(Writer writer)
Callback for the start tag of this component. |
Methods inherited from class com.opensymphony.webwork.components.Component |
---|
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, toString, usesBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergeIterator(OgnlValueStack stack)
Method Detail |
---|
public boolean start(Writer writer)
Component
start
in class Component
writer
- the output writer.
public boolean end(Writer writer, String body)
Component
end
in class Component
writer
- the output writer.body
- the rendered body.
public void setId(String id)
setId
in class Component
public void addParameter(Object value)
Param.UnnamedParametric
addParameter
in interface Param.UnnamedParametric
value
- the value
|
WebWork Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |