An Event Dispatcher mixin interface, adds the ability to register event listeners and dispatch events
to those listeners.
(Deprecated) Classes that implement this mixin must also implement a method getServer(), which returns the server in
which to look for JSX ids.
Publishes an event to all subscribed objects.
Parameters:
objEvent – the event, should have at least a field 'subject' that is the event id, another common field is 'target' (target will default to this instance)
Throws:
Returns:
the number of listeners to which the event was broadcast
Subscribes an object or function to a type of event published by this object.
As of version 3.4 a string value for
objHandler is deprecated.
Parameters:
strEventId – the event type(s).
objHandler – if an object, the instance to notify of events (objFunction is required); if a string, the JSX id of the instance to notify of events (objFunction is required), must exist in the same Server; if a function, the function to call to notify of events (objFunction ignored)
objFunction – if objHandler is a string or object then the function to call on that instance. either a function or a string that is the name of a method of the instance
Throws:
Unsubscribe an object or function from an event published by this object.
As of version 3.4 a string value for
objHandler is deprecated.
Parameters:
strEventId – the event type(s).
objHandler – the value of objHandler passed to subscribe
Unsubscribes all subscribed objects to a type of event published by this object.
Parameters:
strEventId – the event type
Copyright © 2001-2008, TIBCO Software Inc.