Package | org.spicefactory.parsley.binding.processor |
Class | public class PublisherProcessor |
Inheritance | PublisherProcessor Object |
Implements | PropertyProcessor, StatefulProcessor |
Method | Defined By | ||
---|---|---|---|
PublisherProcessor(publisherType:Class, scope:String, id:String = null, managed:Boolean = false, changeEvent:String = null)
Creates a new instance. | PublisherProcessor | ||
Creates a clone of this processor by omitting all
internal state that is tied to one particular target instance. | PublisherProcessor | ||
destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context. | PublisherProcessor | ||
init(target:ManagedObject):void
Invoked during initialization of the target instance. | PublisherProcessor | ||
targetProperty(property:Property):void
Sets the target property for this processor. | PublisherProcessor |
PublisherProcessor | () | Constructor |
public function PublisherProcessor(publisherType:Class, scope:String, id:String = null, managed:Boolean = false, changeEvent:String = null)
Creates a new instance.
ParameterspublisherType:Class — the Class to use as a publisher
| |
scope:String — the scope the binding listens to
| |
id:String (default = null ) — the id the source is published with
| |
managed:Boolean (default = false ) — whether the published object should be added to the Context while being published
| |
changeEvent:String (default = null ) — the event type that signals that the property value has changed (has no effect in Flex applications)
|
clone | () | method |
public function clone():StatefulProcessor
Creates a clone of this processor by omitting all internal state that is tied to one particular target instance.
ReturnsStatefulProcessor — a clone of this processor
|
destroy | () | method |
public function destroy(target:ManagedObject):void
Invoked when the target instance gets removed from the Context. Implementations will usually unregister message receivers, unwatch bindings, remove listeners or perform similar disposal tasks.
Parameters
target:ManagedObject — the target instance that is getting removed from the Context
|
init | () | method |
public function init(target:ManagedObject):void
Invoked during initialization of the target instance. Implementations will usually set properties, registers message receivers or performs similar configuration tasks for the target instance managed by this processor.
Parameters
target:ManagedObject — the target instance that is getting initialized
|
targetProperty | () | method |
public function targetProperty(property:Property):void
Sets the target property for this processor.
Parameters
property:Property — the target property for this processor
|