org.zkoss.zk.ui.metainfo
Class EventHandler

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

public class EventHandler
extends java.lang.Object
implements Condition, java.io.Serializable

An event handler of a component definition (ComponentDefinition).

Author:
tomyeh
See Also:
Serialized Form

Constructor Summary
EventHandler(EvaluatorRef evalr, ZScript zscript, ConditionImpl cond)
           
EventHandler(ZScript zscript, ConditionImpl cond)
           
 
Method Summary
 ZScript getZScript()
          Returns the zscript associated with this event handler.
 boolean isEffective(Component comp)
          Used to evaluate whether it is effective.
 boolean isEffective(Page page)
          Used to evaluate whether it is effective.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventHandler

public EventHandler(ZScript zscript,
                    ConditionImpl cond)

EventHandler

public EventHandler(EvaluatorRef evalr,
                    ZScript zscript,
                    ConditionImpl cond)
Parameters:
evalr - the evaluator reference. It is required if cond is not null.
Since:
3.0.0
Method Detail

getZScript

public ZScript getZScript()
Returns the zscript associated with this event handler.


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.


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo