Packageorg.spicefactory.parsley.binding.impl
Classpublic class AbstractPublisher
InheritanceAbstractPublisher Inheritance flash.events.EventDispatcher
Subclasses PersistentPublisher, PropertyPublisher

Abstract base class for all Publisher implementations.



Public Properties
 PropertyDefined By
  id : String
[read-only]
AbstractPublisher
  type : ClassInfo
[read-only]
AbstractPublisher
  unique : Boolean
[read-only]
AbstractPublisher
Protected Properties
 PropertyDefined By
  enabled : Boolean = true
Indicates whether this publisher is currently enabled.
AbstractPublisher
Public Methods
 MethodDefined By
  
AbstractPublisher(type:ClassInfo, id:String = null, unique:Boolean = false, context:Context = null)
Creates a new instance.
AbstractPublisher
Protected Methods
 MethodDefined By
  
publish(newValue:*):void
Publishes a new value.
AbstractPublisher
Property Detail
enabledproperty
protected var enabled:Boolean = true

Indicates whether this publisher is currently enabled. When disabled changes to the current value should not cause a change event to be fired.

idproperty 
id:String  [read-only]


Implementation
    public function get id():String
typeproperty 
type:ClassInfo  [read-only]


Implementation
    public function get type():ClassInfo
uniqueproperty 
unique:Boolean  [read-only]


Implementation
    public function get unique():Boolean
Constructor Detail
AbstractPublisher()Constructor
public function AbstractPublisher(type:ClassInfo, id:String = null, unique:Boolean = false, context:Context = null)

Creates a new instance.

Parameters
type:ClassInfo — the target property that holds the published value
 
id:String (default = null) — the type of the published value
 
unique:Boolean (default = false) — the id the value is published with
 
context:Context (default = null) — the corresponding Context in case the published object should be managed
Method Detail
publish()method
protected function publish(newValue:*):void

Publishes a new value.

Parameters

newValue:* — the new value to publish