Class blade.base.Messenger
Object
|
+--blade.base.Messenger
-
Direct Known Subclasses:
-
blade.core.dragdrop.Draggable, blade.base.UIComponent
- class
blade.base.Messenger
A root class to support inter-object messaging on the page
Defined in common.js
Method Summary |
function
|
addListener(obj)
Adds another UIComponent to the list of objects that should be passed messages
|
function
|
receive(msg)
Receives a message (should be overridden by inheriting classes)
|
function
|
removeListener(obj)
Removes a UIComponent from the listener list
|
function
|
send(msg)
Sends a message object to all listeners
|
blade.base.Messenger
function blade.base.Messenger()
addListener
function addListener(obj)
Adds another UIComponent to the list of objects that should be passed messages
receive
function receive(msg)
Receives a message (should be overridden by inheriting classes)
removeListener
function removeListener(obj)
Removes a UIComponent from the listener list
Parameters:
obj
- UIComponent to remove
send
function send(msg)
Sends a message object to all listeners