|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.metainfo.WidgetListener
org.zkoss.zk.ui.metainfo.WidgetOverride
public class WidgetOverride
Represents a method of the peer widget.
Unlike WidgetListener, WidgetListener.getScript(org.zkoss.zk.ui.Component) must be a complete
function declaration:
function (arg..) {...}
WidgetListener,
Serialized Form| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.metainfo.WidgetListener |
|---|
_name, _script |
| Constructor Summary | |
|---|---|
WidgetOverride(EvaluatorRef evalr,
java.lang.String name,
java.lang.String script,
ConditionImpl cond)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.zkoss.zk.ui.metainfo.WidgetListener |
|---|
getName, getRawScript, getScript |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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)| Method Detail |
|---|
public void assign(Component comp)
assign in class WidgetListenerpublic EvaluatorRef getEvaluatorRef()
public ConditionImpl getCondition()
public void setCondition(ConditionImpl cond)
public boolean withCondition()
public boolean isEffective(Component comp)
Condition
isEffective in interface Conditioncomp - used as the self variable. Ignored if null.public boolean isEffective(Page page)
Condition
isEffective in interface 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 | |||||||||