Packageorg.spicefactory.parsley.binding.impl
Classpublic class SubscribingPropertyPublisher
InheritanceSubscribingPropertyPublisher Inheritance PropertyPublisher Inheritance AbstractPublisher Inheritance flash.events.EventDispatcher
Implements Subscriber

A publisher that observes the value of a single property and uses its value as the published value and subscribes to the values of other matching publishers at the same time.

This implementation relies on the Flex Binding facility. For Flash applications you can use the FlashPropertyPublisher implementation.



Public Properties
 PropertyDefined By
 InheritedcurrentValue : *
[read-only] The current value of this publisher.
PropertyPublisher
 Inheritedid : String
[read-only]
AbstractPublisher
 Inheritedtype : ClassInfo
[read-only]
AbstractPublisher
 Inheritedunique : Boolean
[read-only] Indicates whether there should only be one publisher with the same type and id values for one particular implementation of this interface.
AbstractPublisher
Protected Properties
 PropertyDefined By
 Inheritedenabled : Boolean = true
Indicates whether this publisher is currently enabled.
AbstractPublisher
Public Methods
 MethodDefined By
  
SubscribingPropertyPublisher(target:Object, property:Property, type:ClassInfo = null, id:String = null, context:Context = null)
Creates a new instance.
SubscribingPropertyPublisher
 Inherited
dispose():void
Disposes this publisher.
PropertyPublisher
 Inherited
init():void
Initializes this publisher.
PropertyPublisher
  
update(newValue:*):void
Notifies this suscriber that the published value has changed.
SubscribingPropertyPublisher
Protected Methods
 MethodDefined By
 Inherited
publish(newValue:*):void
Publishes a new value.
AbstractPublisher
Constructor Detail
SubscribingPropertyPublisher()Constructor
public function SubscribingPropertyPublisher(target:Object, property:Property, type:ClassInfo = null, id:String = null, context:Context = null)

Creates a new instance.

Parameters
target:Object — the instance that holds the property to observe
 
property:Property — the target property that holds the published value
 
type:ClassInfo (default = null) — the type of the published value
 
id:String (default = null) — the id the value is published with
 
context:Context (default = null) — the corresponding Context in case the published object should be managed
Method Detail
update()method
public function update(newValue:*):void

Notifies this suscriber that the published value has changed.

Parameters

newValue:* — the new value of the matching publisher