BubbleEventBroadcaster

Kind of class:class
Inherits from:EventBroadcaster
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.events.BubbleEventBroadcaster
File last modified:Wednesday, 31 October 2007, 07:35:29
BubbleEventBroadcaster

TODO complete documentation (wait for a possible refactoring)

Constructor

BubbleEventBroadcaster

function BubbleEventBroadcaster (
Constructs a new BubbleEventBroadcaster instance.

Instance properties

parent

(read,write)

Instance methods

addChild

function addChild (
Starts receiving bubble events from passed-in child.
Parameters:
child:
a BubbleEventBroadcaster instance that will send bubble events.

broadcastEvent

function broadcastEvent (
e:BubbleEvent) : Void
Broadcasts event to suscribed listeners if event propagation property is set
to true.

The event is bubbled to the parent if event bubble property is set
to true.

Parameters:
e:
an BubbleEvent instance to broadcast or bubble.

removeChild

function removeChild (
Stops receiving bubble events from passed-in child.
Parameters:
child:
a BubbleEventBroadcaster instance that will stop
to send bubble events.

toString

function toString (
) : String
Returns the string representation of this instance.
Returns:
the string representation of this instance