org.zkoss.zk.ui.metainfo
Class EventHandlerMap

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

public class EventHandlerMap
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

A map of instances of EventHandler.

It is thread safe.

Author:
tomyeh
See Also:
Serialized Form

Constructor Summary
EventHandlerMap()
           
 
Method Summary
 void add(java.lang.String evtnm, EventHandler evthd)
          Adds the event handler for the specified event name.
 void addAll(EventHandlerMap src)
          Adds all event handlers of the specified map to this map.
 java.lang.Object clone()
          Clones this event handler map.
 EventHandler get(java.lang.String evtnm)
          Returns the event handler of the specified event name, or null if not available.
 boolean isEmpty()
          Returns whether no event handler at all.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventHandlerMap

public EventHandlerMap()
Method Detail

isEmpty

public boolean isEmpty()
Returns whether no event handler at all.


get

public EventHandler get(java.lang.String evtnm)
Returns the event handler of the specified event name, or null if not available.


add

public void add(java.lang.String evtnm,
                EventHandler evthd)
Adds the event handler for the specified event name.


addAll

public void addAll(EventHandlerMap src)
Adds all event handlers of the specified map to this map.


clone

public java.lang.Object clone()
Clones this event handler map.

Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2007 Potix Corporation. All Rights Reserved.