| Package | org.spicefactory.parsley.core.messaging.impl |
| Class | public class MessageReceiverCollection |
| Inheritance | MessageReceiverCollection flash.events.EventDispatcher |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
MessageReceiverCollection(messageType:Class)
Creates a new instance. | MessageReceiverCollection | ||
Adds a receiver to this collection. | MessageReceiverCollection | ||
getReceiversBySelectorType(kind:MessageReceiverKind, selectorValue:*):Array | MessageReceiverCollection | ||
getReceiversBySelectorValue(kind:MessageReceiverKind, selectorValue:*):Array
Returns all receivers of a particular kind that match for the specified selector value. | MessageReceiverCollection | ||
Removes a receiver from this collection. | MessageReceiverCollection | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when a message receiver was added to or removed from the collection. | MessageReceiverCollection | |||
| empty | property |
empty:Boolean [read-only] Indicates whether this collection is empty.
public function get empty():Boolean| messageType | property |
messageType:Class [read-only] The type of message receivers in this collection are interested in.
public function get messageType():Class| MessageReceiverCollection | () | Constructor |
public function MessageReceiverCollection(messageType:Class)Creates a new instance.
ParametersmessageType:Class — the type of the message
|
| addReceiver | () | method |
public function addReceiver(kind:MessageReceiverKind, receiver:MessageReceiver):voidAdds 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:*):ArrayParameters
kind:MessageReceiverKind | |
selectorValue:* |
Array |
| getReceiversBySelectorValue | () | method |
public function getReceiversBySelectorValue(kind:MessageReceiverKind, selectorValue:*):ArrayReturns 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
|
Array — all receivers of a particular kind that match for the specified selector value
|
| removeReceiver | () | method |
public function removeReceiver(kind:MessageReceiverKind, receiver:MessageReceiver):voidRemoves a receiver from this collection.
Parameters
kind:MessageReceiverKind — the kind of the receiver
| |
receiver:MessageReceiver — the receiver to remove
|
| change | Event |
flash.events.Eventflash.events.Event.CHANGEDispatched when a message receiver was added to or removed from the collection.