| Package | org.spicefactory.parsley.core.binding |
| Interface | public interface Publisher extends flash.events.IEventDispatcher |
| Implementors | PersistentPublisher, PropertyPublisher |
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
dispose():void
Disposes this publisher. | Publisher | ||
init():void
Initializes this publisher. | Publisher | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when the published value changes. | Publisher | |||
| currentValue | property |
currentValue:* [read-only] The current value of this publisher. If this value changes the publisher must dispatch a change event.
public function get currentValue():*| id | property |
id:String [read-only] The optional id of the published value. If omitted the subscribers and publishers will solely be matched by type.
public function get id():String| type | property |
type:ClassInfo [read-only] The type of the published value. May be an interface or supertype of the actual published value.
public function get type():ClassInfo| unique | property |
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.
public function get unique():Boolean| dispose | () | method |
public function dispose():voidDisposes 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():voidInitializes 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.
| change | Event |
flash.events.Eventflash.events.Event.CHANGEDispatched when the published value changes.