Class EventHandler

java.lang.Object
org.zkoss.zk.ui.metainfo.EventHandler
All Implemented Interfaces:
Serializable, Condition

public class EventHandler extends Object
An event handler of a component definition (ComponentDefinition).
Author:
tomyeh
See Also:
  • Constructor Details

  • Method Details

    • 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: Condition
      Used to evaluate whether it is effective.
      Specified by:
      isEffective in interface Condition
      Parameters:
      comp - used as the self variable. Ignored if null.
    • isEffective

      public boolean isEffective(Page page)
      Description copied from interface: Condition
      Used to evaluate whether it is effective.
      Specified by:
      isEffective in interface Condition
      Parameters:
      page - used as the self variable. Ignored if null.