Packageorg.spicefactory.parsley.core.binding.impl
Classpublic class SubscriberCollection
InheritanceSubscriberCollection Inheritance Object

Internal collection utility used by the default BindingManager implementation.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property Detail
emptyproperty
empty:Boolean  [read-only]

Indicates whether this collection does not contain any subscribers. Publishers are not considered.


Implementation
    public function get empty():Boolean
typeproperty 
type:Class  [read-only]

The type the elements of this collection subscribe to.


Implementation
    public function get type():Class
Constructor Detail
SubscriberCollection()Constructor
public function SubscriberCollection(type:ClassInfo)

Creates a new instance.

Parameters
type:ClassInfo — the type the elements of this collection subscribe to
Method Detail
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

Returns
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