Package org.zkoss.zk.ui.metainfo
Class EventHandler
java.lang.Object
org.zkoss.zk.ui.metainfo.EventHandler
- All Implemented Interfaces:
Serializable,Condition
An event handler of a component definition (
ComponentDefinition).- Author:
- tomyeh
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEventHandler(ZScript zscript) EventHandler(EvaluatorRef evalr, ZScript zscript, ConditionImpl cond) -
Method Summary
Modifier and TypeMethodDescriptionReturns the effectiveness condition.Returns the evaluator reference.Returns the zscript associated with this event handler.booleanisEffective(Component comp) Used to evaluate whether it is effective.booleanisEffective(Page page) Used to evaluate whether it is effective.voidsetCondition(ConditionImpl cond) Sets the effectiveness condition.booleanTests if the condition is set
-
Constructor Details
-
EventHandler
-
EventHandler
-
-
Method Details
-
getZScript
Returns the zscript associated with this event handler. -
getEvaluatorRef
Returns the evaluator reference. -
getCondition
Returns the effectiveness condition. -
setCondition
Sets the effectiveness condition. -
withCondition
public boolean withCondition()Tests if the condition is set -
isEffective
Description copied from interface:ConditionUsed to evaluate whether it is effective.- Specified by:
isEffectivein interfaceCondition- Parameters:
comp- used as the self variable. Ignored if null.
-
isEffective
Description copied from interface:ConditionUsed to evaluate whether it is effective.- Specified by:
isEffectivein interfaceCondition- Parameters:
page- used as the self variable. Ignored if null.
-