Packageorg.spicefactory.parsley.core.messaging.impl
Classpublic class MessageReceiverCollection
InheritanceMessageReceiverCollection Inheritance flash.events.EventDispatcher

A collection of message receivers for a particular message type.



Public Properties
 PropertyDefined By
  empty : Boolean
[read-only] Indicates whether this collection is empty.
MessageReceiverCollection
  messageType : Class
[read-only] The type of message receivers in this collection are interested in.
MessageReceiverCollection
Public Methods
 MethodDefined By
  
MessageReceiverCollection(messageType:Class)
Creates a new instance.
MessageReceiverCollection
  
Adds a receiver to this collection.
MessageReceiverCollection
  
getReceiversBySelectorType(kind:MessageReceiverKind, selectorValue:*):Array
MessageReceiverCollection
  
Returns all receivers of a particular kind that match for the specified selector value.
MessageReceiverCollection
  
Removes a receiver from this collection.
MessageReceiverCollection
Events
 Event Summary Defined By
  Dispatched when a message receiver was added to or removed from the collection.MessageReceiverCollection
Property Detail
emptyproperty
empty:Boolean  [read-only]

Indicates whether this collection is empty.


Implementation
    public function get empty():Boolean
messageTypeproperty 
messageType:Class  [read-only]

The type of message receivers in this collection are interested in.


Implementation
    public function get messageType():Class
Constructor Detail
MessageReceiverCollection()Constructor
public function MessageReceiverCollection(messageType:Class)

Creates a new instance.

Parameters
messageType:Class — the type of the message
Method Detail
addReceiver()method
public function addReceiver(kind:MessageReceiverKind, receiver:MessageReceiver):void

Adds a receiver to this collection.

Parameters

kind:MessageReceiverKind — the kind of the receiver
 
receiver:MessageReceiver — the receiver to add

getReceiversBySelectorType()method 
public function getReceiversBySelectorType(kind:MessageReceiverKind, selectorValue:*):Array

Parameters

kind:MessageReceiverKind
 
selectorValue:*

Returns
Array
getReceiversBySelectorValue()method 
public function getReceiversBySelectorValue(kind:MessageReceiverKind, selectorValue:*):Array

Returns all receivers of a particular kind that match for the specified selector value.

Parameters

kind:MessageReceiverKind — the kind of receiver to fetch
 
selectorValue:* — the value of the selector property

Returns
Array — all receivers of a particular kind that match for the specified selector value
removeReceiver()method 
public function removeReceiver(kind:MessageReceiverKind, receiver:MessageReceiver):void

Removes a receiver from this collection.

Parameters

kind:MessageReceiverKind — the kind of the receiver
 
receiver:MessageReceiver — the receiver to remove

Event Detail
change Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.CHANGE

Dispatched when a message receiver was added to or removed from the collection.