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.



Public Properties
 PropertyDefined By
 InheritedcurrentValue : *
[read-only] The current value of this publisher.
PropertyPublisher
 Inheritedid : String
[read-only]
AbstractPublisher
 InheritedpropertyWatcherType : Class
[static] The type of the property watcher implementation all PropertyPublishers should use.
PropertyPublisher
 Inheritedtype : ClassInfo
[read-only]
AbstractPublisher
 Inheritedunique : Boolean
[read-only]
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, changeEvent:String = 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, changeEvent:String = 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
 
changeEvent:String (default = null) — the event type that signals that the property value has changed (has no effect in Flex applications)
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