| Package | org.springextensions.actionscript.stage |
| SVN browsing | FlexStageProcessorRegistry.as |
| Fisheye | FlexStageProcessorRegistry.as |
| Class | public class FlexStageProcessorRegistry |
| Inheritance | FlexStageProcessorRegistry FlashStageProcessorRegistry |
A singleton implementation of the IStageProcessorRegistry that can be shared amongst FlexXMLApplicationContext
instances that perform stage processing.
Sample project: stagewiring (source)
| Property | Defined by | ||
|---|---|---|---|
![]() | enabled : Boolean | FlashStageProcessorRegistry | |
![]() | initialized : Boolean | FlashStageProcessorRegistry | |
| modulePolicy : ModulePolicy
Determines how the
FlexStageProcessorRegistry handles Modules that are added to the stage. | FlexStageProcessorRegistry | ||
![]() | numRegistrations : uint | FlashStageProcessorRegistry | |
| stage : Stage | FlexStageProcessorRegistry | ||
| Method | Defined by | ||
|---|---|---|---|
|
FlexStageProcessorRegistry(singletonToken:Object)
Creates a new
FlexStageProcessorRegistry. | FlexStageProcessorRegistry | ||
|
clear():void
| FlexStageProcessorRegistry | ||
![]() |
getAllObjectSelectors():Array
| FlashStageProcessorRegistry | |
![]() |
getAllRegistrations():Array
| FlashStageProcessorRegistry | |
![]() |
getAllStageProcessors():Array
| FlashStageProcessorRegistry | |
|
[static]
Returns a singleton instance for the current
FlexStageProcessorRegistry. | FlexStageProcessorRegistry | ||
![]() | FlashStageProcessorRegistry | ||
![]() |
getStageProcessorByName(name:String):Array
Retrieves a list of all the
IStageProcessors with the specified name. | FlashStageProcessorRegistry | |
![]() |
getStageProcessorsByDocument(document:Object):Array
| FlashStageProcessorRegistry | |
![]() |
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 | ||
![]() |
registerStageProcessor(name:String, stageProcessor:IStageProcessor, objectSelector:IObjectSelector):void
| FlashStageProcessorRegistry | |
|
registerWindow(window:IEventDispatcher):void
| FlexStageProcessorRegistry | ||
|
unregisterContext(parentDocument:Object, applicationContext:IApplicationContext):void
| FlexStageProcessorRegistry | ||
![]() |
unregisterStageProcessor(name:String, document:Object):void
| FlashStageProcessorRegistry | |
|
unregisterWindow(window:IEventDispatcher):void
| FlexStageProcessorRegistry | ||
| Method | Defined by | ||
|---|---|---|---|
![]() |
added_handler(event:Event):void
If
enabled is true this event handler passes the event.target to the
processStageComponent() method. | FlashStageProcessorRegistry | |
![]() |
addEventListeners(root:DisplayObject):void
| FlashStageProcessorRegistry | |
![]() | FlashStageProcessorRegistry | ||
|
getRoot(component:UIComponent):Object
Retrieves the root component of the given UIComponent.
| FlexStageProcessorRegistry | ||
![]() |
init():void
| FlashStageProcessorRegistry | |
|
initFlexStageProcessorRegistry(singletonToken:Object):void
| FlexStageProcessorRegistry | ||
![]() |
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 | |
![]() |
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 | |
![]() |
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 | ||
![]() |
registerContextForApplication(application:Object, applicationContext:IApplicationContext):void
| FlashStageProcessorRegistry | |
![]() |
removed_handler(event:Event):void
| FlashStageProcessorRegistry | |
![]() |
removeDisplayObjectWithStageProcessorRegistration(displayObject:DisplayObject, stageProcessorRegistration:StageProcessorRegistration):void
| FlashStageProcessorRegistry | |
![]() |
removeEventListeners(root:DisplayObject):void
| FlashStageProcessorRegistry | |
![]() |
removeStageProcesser(processor:IStageProcessor):void
| FlashStageProcessorRegistry | |
![]() |
setInitialized():void
| FlashStageProcessorRegistry | |
![]() |
unregisterContextForApplication(application:Object, applicationContext:IApplicationContext):void
| FlashStageProcessorRegistry | |
![]() |
unregisterStageProcessors(parentDocument:Object):void
| FlashStageProcessorRegistry | |
| Constant | Defined by | ||
|---|---|---|---|
| MX_WINDOW_CLASS : String = "mx.core::Window" [static]
| FlexStageProcessorRegistry | ||
| SPARK_WINDOW_CLASS : String = "spark.components::Window" [static]
| FlexStageProcessorRegistry | ||
| modulePolicy | property |
public var modulePolicy:ModulePolicy
Determines how the FlexStageProcessorRegistry handles Modules that are added to the stage.
| stage | property |
stage:Stage [read-write]Implementation
public function get stage():Stage
public function set stage(value:Stage):void
| FlexStageProcessorRegistry | () | constructor |
public function FlexStageProcessorRegistry(singletonToken:Object)
Creates a new FlexStageProcessorRegistry. Do not call this constructor directly, invoke getInstance() instead.
singletonToken:Object |
| 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.
FlexStageProcessorRegistry |
| getRoot | () | method |
protected function getRoot(component:UIComponent):ObjectRetrieves the root component of the given UIComponent. The root will either be the Application, Module or (native) Window the component lives in.
Parameterscomponent:UIComponent |
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.
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):voidRecursively loops through the stage displaylist and processes every object therein.
ParametersstartComponent: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):voidParameters
parentDocument:Object |
|
applicationContext:IApplicationContext |
| registerWindow | () | method |
public function registerWindow(window:IEventDispatcher):voidParameters
window:IEventDispatcher |
| unregisterContext | () | method |
public override function unregisterContext(parentDocument:Object, applicationContext:IApplicationContext):voidParameters
parentDocument:Object |
|
applicationContext:IApplicationContext |
| unregisterWindow | () | method |
public function unregisterWindow(window:IEventDispatcher):voidParameters
window:IEventDispatcher |
| MX_WINDOW_CLASS | constant |
public static const MX_WINDOW_CLASS:String = "mx.core::Window"
| SPARK_WINDOW_CLASS | constant |
public static const SPARK_WINDOW_CLASS:String = "spark.components::Window"