| Package | org.springextensions.actionscript.stage |
| SVN browsing | StageProcessorRegistration.as |
| Fisheye | StageProcessorRegistration.as |
| Class | public class StageProcessorRegistration |
| Implements | IObjectSelectorAware |
IObjectSelector and its associated IStageProcessor instances.
See also
Sample project: stagewiring (source)
| Property | Defined by | ||
|---|---|---|---|
| names : Array [read-only]
An
Array of Strings that represent the names of the associated IStageProcessor instances. | StageProcessorRegistration | ||
| objectSelector : IObjectSelector
The
IObjectSelector that determines if the associated IStageProcessor instances
will be invoked or not. | StageProcessorRegistration | ||
| processors : Dictionary [read-only]
A
Dictionary lookup for the associated IStageProcessor instances. | StageProcessorRegistration | ||
| Method | Defined by | ||
|---|---|---|---|
|
StageProcessorRegistration(name:String = null, stageProcessor:IStageProcessor = null, objectSelector:IObjectSelector = null)
Creates a new
StageProcessorRegistration instance. | StageProcessorRegistration | ||
|
addStageProcessor(name:String, stageProcessor:IStageProcessor, objectSelector:IObjectSelector, overrideSelector:Boolean = false):void
Adds or override the
IStageProcessor for the specified name. | StageProcessorRegistration | ||
|
containsProcessor(stageProcessor:IStageProcessor):Boolean
Returns true if the current
StageProcessorRegistration contains the specified IStageProcessor
instance. | StageProcessorRegistration | ||
|
getProcessorsByDocument(document:Object):Array
| StageProcessorRegistration | ||
|
getProcessorsByName(name:String):Array
Returns the
IStageProcessors for the specified name, or null if the name doesn't exist in the current StageProcessorRegistration instance. | StageProcessorRegistration | ||
|
getProcessorsByType(type:Class):Array
Returns an
Array of IStageProcessor instances of the specified Class
| StageProcessorRegistration | ||
|
hasProcessorWithName(name:String, stageProcessor:IStageProcessor):Boolean
Returns true if the current
StageProcessorRegistration contains an IStageProcessor
instance with the same name and document property as the specified IStageProcessor
| StageProcessorRegistration | ||
|
removeStageProcessor(stageProcessor:IStageProcessor):void
| StageProcessorRegistration | ||
|
removeStageProcessorByName(name:String, document:Object):void
Removes the
IStageProcessor with the specified name. | StageProcessorRegistration | ||
| Method | Defined by | ||
|---|---|---|---|
|
addProcessorToDocumentLookup(stageProcessor:IStageProcessor):void
| StageProcessorRegistration | ||
|
initStageProcessorRegistration(name:String, stageProcessor:IStageProcessor, objectSelector:IObjectSelector):void
Initializes the
TypedCollectionInit instance. | StageProcessorRegistration | ||
|
removeProcessorFromDocumentLookup(stageProcessor:IStageProcessor):void
| StageProcessorRegistration | ||
| names | property |
names:Array [read-only]
An Array of Strings that represent the names of the associated IStageProcessor instances.
This list also determines the order in which the IStageProcessor instances will be invoked.
public function get names():Array
| objectSelector | property |
objectSelector:IObjectSelector [read-write]
The IObjectSelector that determines if the associated IStageProcessor instances
will be invoked or not.
public function get objectSelector():IObjectSelector
public function set objectSelector(value:IObjectSelector):void
| processors | property |
processors:Dictionary [read-only]
A Dictionary lookup for the associated IStageProcessor instances.
public function get processors():Dictionary
| StageProcessorRegistration | () | constructor |
public function StageProcessorRegistration(name:String = null, stageProcessor:IStageProcessor = null, objectSelector:IObjectSelector = null)
Creates a new StageProcessorRegistration instance.
name:String (default = null) — Optional name for an initial IStageProcessor
|
|
stageProcessor:IStageProcessor (default = null) — Optional initial IStageProcessor that will be added.
|
|
objectSelector:IObjectSelector (default = null) |
| addProcessorToDocumentLookup | () | method |
protected function addProcessorToDocumentLookup(stageProcessor:IStageProcessor):voidParameters
stageProcessor:IStageProcessor |
| addStageProcessor | () | method |
public function addStageProcessor(name:String, stageProcessor:IStageProcessor, objectSelector:IObjectSelector, overrideSelector:Boolean = false):void
Adds or override the IStageProcessor for the specified name. If the objectSelector property is null the objectSelector of
the specified IStageProcessor will be assigned. Unless the overrideSelector is set to true, in which case the objectSelector
property assignement is forced.
name:String — The name associated with the specified IStageProcessor.
|
|
stageProcessor:IStageProcessor — The IStageProcessor that will be added.
|
|
objectSelector:IObjectSelector — If true the objectSelector property will be assigned regardless whether its null or not.
|
|
overrideSelector:Boolean (default = false) |
| containsProcessor | () | method |
public function containsProcessor(stageProcessor:IStageProcessor):Boolean
Returns true if the current StageProcessorRegistration contains the specified IStageProcessor
instance.
stageProcessor:IStageProcessor — The specified IStageProcessor instance.
|
Boolean |
| getProcessorsByDocument | () | method |
public function getProcessorsByDocument(document:Object):ArrayParameters
document:Object |
Array |
| getProcessorsByName | () | method |
public function getProcessorsByName(name:String):Array
Returns the IStageProcessors for the specified name, or null if the name doesn't exist in the current StageProcessorRegistration instance.
name:String — The specifed name
|
Array — An Array of IStageProcessors for the specified name, or null if the name doesn't exist.
|
| getProcessorsByType | () | method |
public function getProcessorsByType(type:Class):Array
Returns an Array of IStageProcessor instances of the specified Class
type:Class — The specified Class
|
Array — An Array of IStageProcessor instances, or null if no instances of the specified Class exist.
|
| hasProcessorWithName | () | method |
public function hasProcessorWithName(name:String, stageProcessor:IStageProcessor):Boolean
Returns true if the current StageProcessorRegistration contains an IStageProcessor
instance with the same name and document property as the specified IStageProcessor
name:String |
|
stageProcessor:IStageProcessor |
Boolean |
| initStageProcessorRegistration | () | method |
protected function initStageProcessorRegistration(name:String, stageProcessor:IStageProcessor, objectSelector:IObjectSelector):void
Initializes the TypedCollectionInit instance.
name:String |
|
stageProcessor:IStageProcessor |
|
objectSelector:IObjectSelector |
| removeProcessorFromDocumentLookup | () | method |
protected function removeProcessorFromDocumentLookup(stageProcessor:IStageProcessor):voidParameters
stageProcessor:IStageProcessor |
| removeStageProcessor | () | method |
public function removeStageProcessor(stageProcessor:IStageProcessor):voidParameters
stageProcessor:IStageProcessor |
| removeStageProcessorByName | () | method |
public function removeStageProcessorByName(name:String, document:Object):void
Removes the IStageProcessor with the specified name.
name:String — The name of the IStageProcessor that will be removed
|
|
document:Object |