Package | org.spicefactory.parsley.core.binding.impl |
Class | public class SubscriberCollection |
Inheritance | SubscriberCollection ![]() |
Property | Defined By | ||
---|---|---|---|
empty : Boolean [read-only]
Indicates whether this collection does not contain any subscribers. | SubscriberCollection | ||
type : Class [read-only]
The type the elements of this collection subscribe to. | SubscriberCollection |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | SubscriberCollection | ||
addPublisher(publisher:Publisher):void
Adds a publisher that affects the subscribers of this collection. | SubscriberCollection | ||
addSubscriber(subscriber:Subscriber):void
Adds a subscriber to this collection. | SubscriberCollection | ||
dispose():void
Disposes this collection, clearing all publishers and stopping to
listen to their events. | SubscriberCollection | ||
isMatchingType(publisher:Publisher):Boolean
Indicates whether the specified publisher would affect the subscribers of this collection. | SubscriberCollection | ||
removePublisher(publisher:Publisher):void
Removes a publisher from this collection. | SubscriberCollection | ||
removeSubscriber(subscriber:Subscriber):void
Removes a subscriber from this collection. | SubscriberCollection |
empty | property |
empty:Boolean
[read-only] Indicates whether this collection does not contain any subscribers. Publishers are not considered.
public function get empty():Boolean
type | property |
type:Class
[read-only] The type the elements of this collection subscribe to.
public function get type():Class
SubscriberCollection | () | Constructor |
public function SubscriberCollection(type:ClassInfo)
Creates a new instance.
Parameterstype:ClassInfo — the type the elements of this collection subscribe to
|
addPublisher | () | method |
public function addPublisher(publisher:Publisher):void
Adds a publisher that affects the subscribers of this collection.
Parameters
publisher:Publisher — the publisher to add
|
addSubscriber | () | method |
public function addSubscriber(subscriber:Subscriber):void
Adds a subscriber to this collection.
Parameters
subscriber:Subscriber — the subscriber to add
|
dispose | () | method |
public function dispose():void
Disposes this collection, clearing all publishers and stopping to listen to their events.
isMatchingType | () | method |
public function isMatchingType(publisher:Publisher):Boolean
Indicates whether the specified publisher would affect the subscribers of this collection.
Parameters
publisher:Publisher — the publisher to check
|
Boolean — true if the specified publisher would affect the subscribers of this collection
|
removePublisher | () | method |
public function removePublisher(publisher:Publisher):void
Removes a publisher from this collection.
Parameters
publisher:Publisher — the publisher to remove
|
removeSubscriber | () | method |
public function removeSubscriber(subscriber:Subscriber):void
Removes a subscriber from this collection.
Parameters
subscriber:Subscriber — the subscriber to remove
|