Class IWEventManager

A class used to register, trigger and remove events on both DOM and Javascript objects. Uses the singleton design pattern. To enforce one single instance we use an anonymous constructor.

Author: BAN

Constructor Summary
IWEventManager()
           
 
Method Summary
 IWEventListener addDomListener(obj, eventName, eventHandler)
           Registers a handler for the DOM event eventName for the given object. If possible the W3C or Microsoft syntax for attaching events will be used, otherwise an IW event handler is registered.
 IWEventListener addListener(obj, eventName, eventHandler)
           Registers a handler for the event "event" for the given object.
 IWEventListener bind(obj, eventName, listenerObj, eventHandler)
           Registers a method from an object as handler for events of the specified type from another object.
 void clearInstanceListeners(obj)
           Removes all registered handlers for the given object.
 void clearListeners(obj, eventName)
           Removes all handlers for the specified event type and object.
 void removeListener(eventListener)
           Removes the handler determined by the specified reference.
 void trigger(obj, eventName, theEvent)
           Triggers the event on the given object.
 
Constructor Detail

IWEventManager

IWEventManager()

Method Detail

addDomListener

IWEventListener addDomListener(obj, eventName, eventHandler)

addListener

IWEventListener addListener(obj, eventName, eventHandler)

bind

IWEventListener bind(obj, eventName, listenerObj, eventHandler)

clearInstanceListeners

void clearInstanceListeners(obj)

clearListeners

void clearListeners(obj, eventName)

removeListener

void removeListener(eventListener)

trigger

void trigger(obj, eventName, theEvent)

Source-Code Copyright 2007-2009 infoware GmbH - Documentation generated by JsDoc Toolkit 1.4.1 on Tue Nov 28 2017 09:51:52 GMT+0100 (MEZ)