Packageorg.spicefactory.parsley.binding.impl
Classpublic class PropertySubscriber
InheritancePropertySubscriber Inheritance AbstractSubscriber Inheritance flash.events.EventDispatcher
Implements Subscriber

A Subscriber that updates the value of a single property whenever the value of matching publishers changes.



Public Properties
 PropertyDefined By
 Inheritedid : String
[read-only]
AbstractSubscriber
 Inheritedtype : ClassInfo
[read-only]
AbstractSubscriber
 Inheritedunique : Boolean
[read-only]
AbstractSubscriber
Public Methods
 MethodDefined By
  
PropertySubscriber(target:Object, property:Property, type:ClassInfo = null, id:String = null)
Creates a new instance.
PropertySubscriber
  
update(newValue:*):void
Notifies this suscriber that the published value has changed.
PropertySubscriber
Constructor Detail
PropertySubscriber()Constructor
public function PropertySubscriber(target:Object, property:Property, type:ClassInfo = null, id: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
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