|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.util.ConditionImpl
public class ConditionImpl
An utility to simplify the implementation of Condition.
Note: it doesn't implement Condition.
| Constructor Summary | |
|---|---|
ConditionImpl(java.lang.String ifc,
java.lang.String unless)
Construct. |
|
| Method Summary | |
|---|---|
static ConditionImpl |
getInstance(java.lang.String ifc,
java.lang.String unless)
Returns an instance of Condition, or null if both ifc and unless are empty. |
boolean |
isEffective(Evaluator eval,
Component comp)
Used to evaluate whether it is effective. |
boolean |
isEffective(Evaluator eval,
Page page)
Used to evaluate whether it is effective. |
void |
setIf(java.lang.String cond)
Sets the if condition. |
void |
setUnless(java.lang.String cond)
Sets the unless condition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConditionImpl(java.lang.String ifc,
java.lang.String unless)
getInstance(java.lang.String, java.lang.String) instead of this constructor.
| Method Detail |
|---|
public static ConditionImpl getInstance(java.lang.String ifc,
java.lang.String unless)
public void setIf(java.lang.String cond)
cond - the condition.
Note: If null (not specified), it is considered effective.isEffective(org.zkoss.zk.xel.Evaluator, org.zkoss.zk.ui.Component)public void setUnless(java.lang.String cond)
cond - the condition.
Note: If null (not specified), it is considered ineffective.isEffective(org.zkoss.zk.xel.Evaluator, org.zkoss.zk.ui.Component)
public boolean isEffective(Evaluator eval,
Component comp)
eval - the evaluator to evaluate this conditioncomp - used as the self variable. Ignored if null.
public boolean isEffective(Evaluator eval,
Page page)
eval - the evaluator to evaluate this conditionpage - used as the self variable. Ignored if null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||