Packageorg.spicefactory.parsley.flex.tag
Classpublic class ConfigurationTagBase
InheritanceConfigurationTagBase Inheritance flash.events.EventDispatcher
Implements mx.core.IMXMLObject
Subclasses ConfigureTag, ContextAwareTagBase, ContextBuilderTag, FastInjectTag

Base class for MXML configuration tags that may require both, the associated document component being added to the stage and the bindings for the tag being executed, before performing its work. Both requirements are configurable so that the class can be used for tags that require only one of these conditions to be true. Subclasses only have to overwrite the template method executeAction for doing the actual work.



Public Methods
 MethodDefined By
  
ConfigurationTagBase(listenerPriority:int = 0, stageBound:Boolean = true, supportsBindings:Boolean = true)
Creates a new instance.
ConfigurationTagBase
Protected Methods
 MethodDefined By
  
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
Constructor Detail
ConfigurationTagBase()Constructor
public function ConfigurationTagBase(listenerPriority:int = 0, stageBound:Boolean = true, supportsBindings:Boolean = true)

Creates a new instance.

Parameters
listenerPriority:int (default = 0) — the priority to use when adding listeners to the document object this tag is associated with
 
stageBound:Boolean (default = true) — true if the tag should wait until the associated document object is added to the stage before performing its work
 
supportsBindings:Boolean (default = true) — true if this tag supports binding and thus has to wait until the associated document object is initialized before performing its work
Method Detail
executeAction()method
protected function 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). The default implementation throws an Error, subclasses are expected to override this method. The view is the document instance associated with this tag class.

Parameters

view:DisplayObject — the fully initialized view