Packageorg.springextensions.actionscript.stage
SVN browsingFlexStageProcessorRegistry.as
FisheyeFlexStageProcessorRegistry.as
Classpublic class FlexStageProcessorRegistry
InheritanceFlexStageProcessorRegistry Inheritance FlashStageProcessorRegistry

A singleton implementation of the IStageProcessorRegistry that can be shared amongst FlexXMLApplicationContext instances that perform stage processing.



Sample project: stagewiring (source)


Public Properties
 PropertyDefined by
 Inheritedenabled : Boolean
FlashStageProcessorRegistry
 Inheritedinitialized : Boolean
FlashStageProcessorRegistry
  modulePolicy : ModulePolicy
Determines how the FlexStageProcessorRegistry handles Modules that are added to the stage.
FlexStageProcessorRegistry
 InheritednumRegistrations : uint
FlashStageProcessorRegistry
  stage : Stage
FlexStageProcessorRegistry
Protected Properties
 PropertyDefined by
 Inheritedcontexts : Dictionary
FlashStageProcessorRegistry
 InheritedstageProcessorRegistrations : Array
An Array of StageProcessorRegistrations instances.
FlashStageProcessorRegistry
Public Methods
 MethodDefined by
  
FlexStageProcessorRegistry(singletonToken:Object)
Creates a new FlexStageProcessorRegistry.
FlexStageProcessorRegistry
  
clear():void
FlexStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
  
[static] Returns a singleton instance for the current FlexStageProcessorRegistry.
FlexStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
 Inherited
getStageProcessorByName(name:String):Array
Retrieves a list of all the IStageProcessors with the specified name.
FlashStageProcessorRegistry
 Inherited
getStageProcessorsByDocument(document:Object):Array
FlashStageProcessorRegistry
 Inherited
getStageProcessorsByType(type:Class):Array
FlashStageProcessorRegistry
  
initialize():void
FlexStageProcessorRegistry
  
processStage(startComponent:DisplayObject = null):void
Recursively loops through the stage displaylist and processes every object therein.
FlexStageProcessorRegistry
  
registerContext(parentDocument:Object, applicationContext:IApplicationContext):void
FlexStageProcessorRegistry
 Inherited
registerStageProcessor(name:String, stageProcessor:IStageProcessor, objectSelector:IObjectSelector):void
FlashStageProcessorRegistry
  
registerWindow(window:IEventDispatcher):void
FlexStageProcessorRegistry
  
unregisterContext(parentDocument:Object, applicationContext:IApplicationContext):void
FlexStageProcessorRegistry
 Inherited
unregisterStageProcessor(name:String, document:Object):void
FlashStageProcessorRegistry
  
unregisterWindow(window:IEventDispatcher):void
FlexStageProcessorRegistry
Protected Methods
 MethodDefined by
 Inherited
added_handler(event:Event):void
If enabled is true this event handler passes the event.target to the processStageComponent() method.
FlashStageProcessorRegistry
 Inherited
addEventListeners(root:DisplayObject):void
FlashStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
  
getRoot(component:UIComponent):Object
Retrieves the root component of the given UIComponent.
FlexStageProcessorRegistry
 Inherited
init():void
FlashStageProcessorRegistry
  
initFlexStageProcessorRegistry(singletonToken:Object):void
FlexStageProcessorRegistry
 Inherited
processDisplayObject(displayObject:DisplayObject):void
Detects whether an object added to the stage is a candidate for processing through the list of StageProcessorRegistration instances, if any IObjectSelector approves of the object its associated IStageProcessor's process() method is invoked.
FlashStageProcessorRegistry
 Inherited
processDisplayObjectRecursively(displayObject:DisplayObject):void
Sends the specified DisplayObject instance to the processStageComponent() method, then loops through its children and recursively sends those to the processStageComponent() method.
FlashStageProcessorRegistry
 Inherited
processDisplayObjectRemoval(displayObject:DisplayObject):void
FlashStageProcessorRegistry
  
processDisplayObjectWithStageProcessorRegistration(displayObject:DisplayObject, stageProcessorRegistration:StageProcessorRegistration):void
First searches for all the IStageProcessors with a document property that match the specified stageComponent.parentDocument property and lets these IStageProcessors process the stageComponent.
FlexStageProcessorRegistry
 Inherited
registerContextForApplication(application:Object, applicationContext:IApplicationContext):void
FlashStageProcessorRegistry
 Inherited
removed_handler(event:Event):void
FlashStageProcessorRegistry
 Inherited
removeDisplayObjectWithStageProcessorRegistration(displayObject:DisplayObject, stageProcessorRegistration:StageProcessorRegistration):void
FlashStageProcessorRegistry
 Inherited
removeEventListeners(root:DisplayObject):void
FlashStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
 Inherited
FlashStageProcessorRegistry
 Inherited
unregisterContextForApplication(application:Object, applicationContext:IApplicationContext):void
FlashStageProcessorRegistry
 Inherited
unregisterStageProcessors(parentDocument:Object):void
FlashStageProcessorRegistry
Public Constants
 ConstantDefined by
  MX_WINDOW_CLASS : String = "mx.core::Window"
[static]
FlexStageProcessorRegistry
  SPARK_WINDOW_CLASS : String = "spark.components::Window"
[static]
FlexStageProcessorRegistry
Protected Constants
 ConstantDefined by
 InheritedSTAGE_PROCESSING_COMPLETED : String = "Stage processing completed"
[static]
FlashStageProcessorRegistry
 InheritedSTAGE_PROCESSING_STARTED : String = "Stage processing starting with component '{0}'"
[static]
FlashStageProcessorRegistry
 InheritedSTAGE_PROCESSOR_REGISTRY_CLEARED : String = "StageProcessorRegistry was cleared"
[static]
FlashStageProcessorRegistry
Property detail
modulePolicyproperty
public var modulePolicy:ModulePolicy

Determines how the FlexStageProcessorRegistry handles Modules that are added to the stage.

stageproperty 
stage:Stage  [read-write]Implementation
    public function get stage():Stage
    public function set stage(value:Stage):void
Constructor detail
FlexStageProcessorRegistry()constructor
public function FlexStageProcessorRegistry(singletonToken:Object)

Creates a new FlexStageProcessorRegistry. Do not call this constructor directly, invoke getInstance() instead.

Parameters
singletonToken:Object
Method detail
clear()method
public override function clear():void
getInstance()method 
public static function getInstance():FlexStageProcessorRegistry

Returns a singleton instance for the current FlexStageProcessorRegistry. Use this method to receive an instance of FlexStageProcessorRegistry instead of calling the constructor directly.

Returns
FlexStageProcessorRegistry
getRoot()method 
protected function getRoot(component:UIComponent):Object

Retrieves the root component of the given UIComponent. The root will either be the Application, Module or (native) Window the component lives in.

Parameters
component:UIComponent

Returns
Object
initFlexStageProcessorRegistry()method 
protected function initFlexStageProcessorRegistry(singletonToken:Object):voidParameters
singletonToken:Object
initialize()method 
public override function initialize():void

processDisplayObjectWithStageProcessorRegistration()method 
protected override function processDisplayObjectWithStageProcessorRegistration(displayObject:DisplayObject, stageProcessorRegistration:StageProcessorRegistration):void

First searches for all the IStageProcessors with a document property that match the specified stageComponent.parentDocument property and lets these IStageProcessors process the stageComponent. If no matching IStageProcessors are found a list of IStageProcessors is retrieved that have a document property whose value matches the current Application.

Parameters
displayObject:DisplayObject — The UIComponent instance that needs to be processed.
 
stageProcessorRegistration:StageProcessorRegistration — The StageProcessorRegistration instance that is searched for appropriate IStageProcessor instances.
processStage()method 
public override function processStage(startComponent:DisplayObject = null):void

Recursively loops through the stage displaylist and processes every object therein.

Parameters
startComponent:DisplayObject (default = null) — Optionally a start component can be specified that will be used as the root for recursion.
registerContext()method 
public override function registerContext(parentDocument:Object, applicationContext:IApplicationContext):void

Parameters
parentDocument:Object
 
applicationContext:IApplicationContext
registerWindow()method 
public function registerWindow(window:IEventDispatcher):voidParameters
window:IEventDispatcher
unregisterContext()method 
public override function unregisterContext(parentDocument:Object, applicationContext:IApplicationContext):void

Parameters
parentDocument:Object
 
applicationContext:IApplicationContext
unregisterWindow()method 
public function unregisterWindow(window:IEventDispatcher):voidParameters
window:IEventDispatcher
Constant detail
MX_WINDOW_CLASSconstant
public static const MX_WINDOW_CLASS:String = "mx.core::Window"
SPARK_WINDOW_CLASSconstant 
public static const SPARK_WINDOW_CLASS:String = "spark.components::Window"