| Package | org.springextensions.actionscript.stage.selectors |
| SVN browsing | ClassBasedObjectSelector.as |
| Fisheye | ClassBasedObjectSelector.as |
| Class | public class ClassBasedObjectSelector |
| Implements | IObjectSelector |
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
Documentation reference: how to determine which stage components are eligeble for configuration
Sample project: stagewiring (source)
| Property | Defined by | ||
|---|---|---|---|
| approveOnMatch : Boolean [write-only]
| ClassBasedObjectSelector | ||
| classRegexpArray : Array [write-only]
| ClassBasedObjectSelector | ||
| Method | Defined by | ||
|---|---|---|---|
|
ClassBasedObjectSelector(regexpArray:Array = null, approveOnMatch:Boolean = false)
Creates a new ClassBasedObjectSelector.
| ClassBasedObjectSelector | ||
|
approve(object:Object):Boolean
| ClassBasedObjectSelector | ||
| approveOnMatch | property |
approveOnMatch:Boolean [write-only]
The default value is <code>false</code>.
public function set approveOnMatch(value:Boolean):void
| classRegexpArray | property |
classRegexpArray:Array [write-only]Implementation
public function set classRegexpArray(value:Array):void
| ClassBasedObjectSelector | () | constructor |
public function ClassBasedObjectSelector(regexpArray:Array = null, approveOnMatch:Boolean = false)Creates a new ClassBasedObjectSelector.
ParametersregexpArray: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.
|
| approve | () | method |
public function approve(object:Object):BooleanParameters
object:Object — The object to be approved (or not) for selection.
|
Boolean — true if the object is selected, false
otherwise.
|