Package org.zkoss.zk.ui.metainfo
Class EventHandler
- java.lang.Object
-
- org.zkoss.zk.ui.metainfo.EventHandler
-
- All Implemented Interfaces:
java.io.Serializable,Condition
public class EventHandler extends java.lang.ObjectAn event handler of a component definition (ComponentDefinition).- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EventHandler(ZScript zscript)EventHandler(EvaluatorRef evalr, ZScript zscript, ConditionImpl cond)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionImplgetCondition()Returns the effectiveness condition.EvaluatorRefgetEvaluatorRef()Returns the evaluator reference.ZScriptgetZScript()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.booleanwithCondition()Tests if the condition is set
-
-
-
Constructor Detail
-
EventHandler
public EventHandler(EvaluatorRef evalr, ZScript zscript, ConditionImpl cond)
-
EventHandler
public EventHandler(ZScript zscript)
-
-
Method Detail
-
getZScript
public ZScript getZScript()
Returns the zscript associated with this event handler.
-
getEvaluatorRef
public EvaluatorRef getEvaluatorRef()
Returns the evaluator reference.
-
getCondition
public ConditionImpl getCondition()
Returns the effectiveness condition.
-
setCondition
public void setCondition(ConditionImpl cond)
Sets the effectiveness condition.
-
withCondition
public boolean withCondition()
Tests if the condition is set
-
isEffective
public boolean isEffective(Component comp)
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
public boolean isEffective(Page page)
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.
-
-