public class WidgetOverride extends WidgetListener
WidgetListener
, WidgetListener.getScript(org.zkoss.zk.ui.Component)
must be a complete
function declaration:
function (arg..) {...}
WidgetListener
,
Serialized Form_name, _script
Constructor and Description |
---|
WidgetOverride(EvaluatorRef evalr,
java.lang.String name,
java.lang.String script,
ConditionImpl cond) |
Modifier and Type | Method and Description |
---|---|
void |
assign(Component comp) |
ConditionImpl |
getCondition()
Returns the effectiveness condition.
|
EvaluatorRef |
getEvaluatorRef()
Returns the evaluator reference.
|
boolean |
isEffective(Component comp)
Used to evaluate whether it is effective.
|
boolean |
isEffective(Page page)
Used to evaluate whether it is effective.
|
void |
setCondition(ConditionImpl cond)
Sets the effectiveness condition.
|
boolean |
withCondition()
Tests if the condition is set
|
getName, getRawScript, getScript
public WidgetOverride(EvaluatorRef evalr, java.lang.String name, java.lang.String script, ConditionImpl cond)
evalr
- the evaluator reference used to evaluate the condition.name
- the the method name, such as setValue.java.lang.IllegalArgumentException
- if script is null
or (cond is not null but evalr is null)public void assign(Component comp)
assign
in class WidgetListener
public EvaluatorRef getEvaluatorRef()
public ConditionImpl getCondition()
public void setCondition(ConditionImpl cond)
public boolean withCondition()
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.Copyright © 2005-2023 Potix Corporation. All Rights Reserved.