|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.util.ForEachImpl
public class ForEachImpl
An implementation of ForEach.
Note: the use of ForEachImpl is different from
ConditionImpl. While you could use the same instance of
ConditionImpl for all evaluation, each instance of
ForEachImpl can be used only once (drop it after next()
returns false).
| Constructor Summary | |
|---|---|
ForEachImpl(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end)
Constructor. |
|
ForEachImpl(EvaluatorRef evalr,
Component comp,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Constructor. |
|
ForEachImpl(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end)
Constructor. |
|
ForEachImpl(EvaluatorRef evalr,
Page page,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Constructor. |
|
| Method Summary | |
|---|---|
static ForEach |
getInstance(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end)
Returns an instance that represents the iterator for the specified collection. |
static ForEach |
getInstance(EvaluatorRef evalr,
Component comp,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Returns an instance that represents the iterator for the specified collection, or null if expr is null or empty. |
static ForEach |
getInstance(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end)
Returns an instance that represents the iterator for the specified collection, or null if expr is null or empty. |
static ForEach |
getInstance(EvaluatorRef evalr,
Page page,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
Returns an instance that represents the iterator for the specified collection, or null if expr is null or empty. |
boolean |
next()
Advanced to the next element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ForEachImpl(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end)
getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
instead of this constructor.
java.lang.IllegalArgumentException - if comp or evalr is null
public ForEachImpl(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end)
getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
instead of this constructor.
java.lang.IllegalArgumentException - if page or evalr is null
public ForEachImpl(EvaluatorRef evalr,
Component comp,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
getInstance(EvaluatorRef, Component, String, String, String)
instead of this constructor.
java.lang.IllegalArgumentException - if comp or evalr is nullForEachImpl(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
public ForEachImpl(EvaluatorRef evalr,
Page page,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
getInstance(EvaluatorRef, Component, String, String, String)
instead of this constructor.
java.lang.IllegalArgumentException - if page or evalr is nullForEachImpl(EvaluatorRef, Page, ExValue[], ExValue, ExValue)| Method Detail |
|---|
public static ForEach getInstance(EvaluatorRef evalr,
Component comp,
ExValue[] expr,
ExValue begin,
ExValue end)
expr - an array of expressions. There are two formats.
public static ForEach getInstance(EvaluatorRef evalr,
Page page,
ExValue[] expr,
ExValue begin,
ExValue end)
expr - an array of expressions. There are two formats.
public static ForEach getInstance(EvaluatorRef evalr,
Component comp,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
expr - an EL expression that shall return a collection of objects.getInstance(EvaluatorRef, Component, ExValue[], ExValue, ExValue)
public static ForEach getInstance(EvaluatorRef evalr,
Page page,
java.lang.String expr,
java.lang.String begin,
java.lang.String end)
expr - an EL expression that shall return a collection of objects.getInstance(EvaluatorRef, Page, ExValue[], ExValue, ExValue)public boolean next()
ForEach
next in interface ForEach
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||