Packageorg.springextensions.actionscript.stage.selectors
SVN browsingClassBasedObjectSelector.as
FisheyeClassBasedObjectSelector.as
Classpublic class ClassBasedObjectSelector
ImplementsIObjectSelector

IObjectSelector approving or denying objects based on fully qualified class name. to be matched against an array of Regexp (default behaviour approves objects whose name do not match all passed regexp, approves all objects if no regexp is passed, deny the rest).

See also

String.search()


Documentation reference: how to determine which stage components are eligeble for configuration

Sample project: stagewiring (source)


Public Properties
 PropertyDefined by
  approveOnMatch : Boolean
[write-only]
ClassBasedObjectSelector
  classRegexpArray : Array
[write-only]
ClassBasedObjectSelector
Public Methods
 MethodDefined by
  
ClassBasedObjectSelector(regexpArray:Array = null, approveOnMatch:Boolean = false)
Creates a new ClassBasedObjectSelector.
ClassBasedObjectSelector
  
approve(object:Object):Boolean
ClassBasedObjectSelector
Property detail
approveOnMatchproperty
approveOnMatch:Boolean  [write-only]

The default value is <code>false</code>.

Implementation
    public function set approveOnMatch(value:Boolean):void
classRegexpArrayproperty 
classRegexpArray:Array  [write-only]

Implementation
    public function set classRegexpArray(value:Array):void
Constructor detail
ClassBasedObjectSelector()constructor
public function ClassBasedObjectSelector(regexpArray:Array = null, approveOnMatch:Boolean = false)

Creates a new ClassBasedObjectSelector.

Parameters
regexpArray:Array (default = null) — The array of Regexp to match the object fully qualified class name against.
 
approveOnMatch:Boolean (default = false) — if true will revert the selector logic and approve the object in case the fully qualified name MATCHES all passed regexps.
Method detail
approve()method
public function approve(object:Object):Boolean

Parameters
object:Object — The object to be approved (or not) for selection.

Returns
Booleantrue if the object is selected, false otherwise.