Packageorg.spicefactory.parsley.flex.tag.view
Classpublic class ConfigureTag
InheritanceConfigureTag Inheritance ConfigurationTagBase Inheritance flash.events.EventDispatcher

MXML Tag that can be used for views that wish to be wired to the IOC Container. With the target property of this tag the object to be wired to the Context can be explicitly specified and does not have to be a DisplayObject. If the target property is not used the document object this tag is placed upon will be wired. That object must always be a DisplayObject since it is used to dispatch a bubbling event.

Default MXML Propertytargets



Public Properties
 PropertyDefined By
  autoremove : Boolean
[write-only] Indicates whether the target should be removed when the view is removed from the stage.
ConfigureTag
  configId : String
The id to use to lookup a matching configuration in the container.
ConfigureTag
  reuse : Boolean
[write-only] Indicates whether the wiring should happen repeatedly after the wired object has been removed from the stage.
ConfigureTag
  targets : Array
The target objects to be wired to the Context.
ConfigureTag
Protected Methods
 MethodDefined By
 Inherited
executeAction(view:DisplayObject):void
Invoked when the specified view has been added to the stage and is fully initialized (in case it is a Flex component).
ConfigurationTagBase
Property Detail
autoremoveproperty
autoremove:Boolean  [write-only]

Indicates whether the target should be removed when the view is removed from the stage. Only has an effect when no custom ViewLifecycle has been set. The exact action to be performed when the view gets removed from the stage is determined by the destroy method of the ViewProcessor.


Implementation
    public function set autoremove(value:Boolean):void
configIdproperty 
public var configId:String

The id to use to lookup a matching configuration in the container. This parameter is optional, if omitted and the wired target instance is a DisplayObject its name will be used for id lookup. If there is no matching configuration for a particular id then the container matches by type. If that fails too, no container configuration will be used and only metadata on the target instance will be processed.

reuseproperty 
reuse:Boolean  [write-only]

Indicates whether the wiring should happen repeatedly after the wired object has been removed from the stage. When set to false it is only wired once. The default is false.


Implementation
    public function set reuse(value:Boolean):void
targetsproperty 
public var targets:Array

The target objects to be wired to the Context. If this property is not set explicitly then the document object this tag was placed upon will be the only object getting wired.