|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.metainfo.VariablesInfo
public class VariablesInfo
The information about the variables element in the ZUML page.
Constructor Summary | |
---|---|
VariablesInfo(EvaluatorRef evalr,
java.util.Map vars,
boolean local,
ConditionImpl cond)
The same as VariablesInfo(evalr, vars, locale, "none", cond). |
|
VariablesInfo(EvaluatorRef evalr,
java.util.Map vars,
boolean local,
java.lang.String composite,
ConditionImpl cond)
Constructor. |
Method Summary | |
---|---|
void |
apply(Component comp)
Applies the variable element against the parent component. |
void |
apply(Page page)
Applies the variable element against the page. |
java.lang.String |
getComposite()
Returns the composite type: "none", "list" or "map". |
boolean |
isEffective(Component comp)
Used to evaluate whether it is effective. |
boolean |
isEffective(Page page)
Used to evaluate whether it is effective. |
boolean |
isLocal()
Returns if it is for local variable. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VariablesInfo(EvaluatorRef evalr, java.util.Map vars, boolean local, java.lang.String composite, ConditionImpl cond)
evalr
- the evaluator reference. It cannot be null.
Retrieve it from LanguageDefinition.getEvaluatorRef()
or PageDefinition.getEvaluatorRef()
, depending which it
belongs.vars
- a map of (String name, String value).
Note: once called, the caller cannot access it any more.
In other words, it becomes part of this object.local
- whether they are local variables.composite
- indicates the composite type.
It can be one of "none", "list" or "map".
If null or empty, "none" is assumed.
java.lang.IllegalArgumentException
- if evalr is null,
or the composite type is illegal.public VariablesInfo(EvaluatorRef evalr, java.util.Map vars, boolean local, ConditionImpl cond)
evalr
- the evaluator reference. It cannot be null.
Retrieve it from LanguageDefinition.getEvaluatorRef()
or PageDefinition.getEvaluatorRef()
, depending which it
belongs.vars
- a map of (String name, String value).
Note: once called, the caller cannot access it any more.
In other words, it becomes part of this object.local
- whether they are local variables.
java.lang.IllegalArgumentException
- if evalr is nullMethod Detail |
---|
public boolean isLocal()
public java.lang.String getComposite()
public void apply(Component comp)
comp
- the parent component (it cannot be null)public void apply(Page page)
public boolean isEffective(Component comp)
Condition
isEffective
in interface Condition
comp
- used as the self variable. Ignored if null.public boolean isEffective(Page page)
Condition
isEffective
in interface Condition
page
- used as the self variable. Ignored if null.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |