| Package | org.springextensions.actionscript.stage.selectors |
| SVN browsing | TypeBasedObjectSelector.as |
| Fisheye | TypeBasedObjectSelector.as |
| Class | public class TypeBasedObjectSelector |
| Implements | IObjectFactoryAware, IObjectSelector |
IObjectSelector approving or denying objects based on their type.
(default behaviour approves objects whose type matches one of the types in the typeArray).
Documentation reference: how to determine which stage components are eligeble for configuration
| Property | Defined by | ||
|---|---|---|---|
| approveOnMatch : Boolean
When set to true the
approve() method returns true when the specified object is of a type that
is an item in the typeArray. | TypeBasedObjectSelector | ||
| objectFactory : IObjectFactory
[write-only]
| TypeBasedObjectSelector | ||
| typeArray : Array
An array of
Class instance, the specified object will be checked to see if
it is of any of these types. | TypeBasedObjectSelector | ||
| Method | Defined by | ||
|---|---|---|---|
|
TypeBasedObjectSelector(typeArray:Array = null, approveOnMatch:Boolean = true)
Create a new
TypeBasedObjectSelector instance. | TypeBasedObjectSelector | ||
|
approve(object:Object):Boolean
Returns true if the specified object is of a type in the typeArray and the approveOnMatch property is set to true. | TypeBasedObjectSelector | ||
| approveOnMatch | property |
approveOnMatch:Boolean [read-write]
When set to true the approve() method returns true when the specified object is of a type that
is an item in the typeArray.
The default value is true.
public function get approveOnMatch():Boolean
public function set approveOnMatch(value:Boolean):void
| objectFactory | property |
objectFactory:IObjectFactory [write-only]Implementation
public function set objectFactory(value:IObjectFactory):void
| typeArray | property |
typeArray:Array [read-write]
An array of Class instance, the specified object will be checked to see if
it is of any of these types.
public function get typeArray():Array
public function set typeArray(value:Array):void
| TypeBasedObjectSelector | () | constructor |
public function TypeBasedObjectSelector(typeArray:Array = null, approveOnMatch:Boolean = true)
Create a new TypeBasedObjectSelector instance.
typeArray:Array (default = null) |
|
approveOnMatch:Boolean (default = true) |
| approve | () | method |
public function approve(object:Object):Boolean
Returns true if the specified object is of a type in the typeArray and the approveOnMatch property is set to true.
Parametersobject:Object — The object to be approved (or not) for selection.
|
Boolean — true if the object is selected, false
otherwise.
|