Packageorg.spicefactory.parsley.core.binding
Interfacepublic interface Publisher extends flash.events.IEventDispatcher
Implementors PersistentPublisher, PropertyPublisher

Publishes a single value to matching subscribers. The published value may change anytime, in which case a change event must be dispatched by the publisher.



Public Properties
 PropertyDefined By
  currentValue : *
[read-only] The current value of this publisher.
Publisher
  id : String
[read-only] The optional id of the published value.
Publisher
  type : ClassInfo
[read-only] The type of the published value.
Publisher
  unique : 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.
Publisher
Public Methods
 MethodDefined By
  
dispose():void
Disposes this publisher.
Publisher
  
init():void
Initializes this publisher.
Publisher
Events
 Event Summary Defined By
  Dispatched when the published value changes.Publisher
Property Detail
currentValueproperty
currentValue:*  [read-only]

The current value of this publisher. If this value changes the publisher must dispatch a change event.


Implementation
    public function get currentValue():*
idproperty 
id:String  [read-only]

The optional id of the published value. If omitted the subscribers and publishers will solely be matched by type.


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

The type of the published value. May be an interface or supertype of the actual published value.


Implementation
    public function get type():ClassInfo
uniqueproperty 
unique: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.


Implementation
    public function get unique():Boolean
Method Detail
dispose()method
public function dispose():void

Disposes this publisher. After this method was invoked the publisher does not need to continue to provide a published value or dispatch change events.

init()method 
public function init():void

Initializes this publisher. The publisher is only supposed to dispatch change events and provide a published value after this method has been called until the dispose method is called.

Event Detail
change Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event.CHANGE

Dispatched when the published value changes.