Packageorg.springextensions.actionscript.stage.selectors
SVN browsingTypeBasedObjectSelector.as
FisheyeTypeBasedObjectSelector.as
Classpublic class TypeBasedObjectSelector
ImplementsIObjectFactoryAware, 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


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Property detail
approveOnMatchproperty
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.

Implementation
    public function get approveOnMatch():Boolean
    public function set approveOnMatch(value:Boolean):void
objectFactoryproperty 
objectFactory:IObjectFactory  [write-only]Implementation
    public function set objectFactory(value:IObjectFactory):void
typeArrayproperty 
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.

Implementation
    public function get typeArray():Array
    public function set typeArray(value:Array):void
Constructor detail
TypeBasedObjectSelector()constructor
public function TypeBasedObjectSelector(typeArray:Array = null, approveOnMatch:Boolean = true)

Create a new TypeBasedObjectSelector instance.

Parameters
typeArray:Array (default = null)
 
approveOnMatch:Boolean (default = true)
Method detail
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.

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

Returns
Booleantrue if the object is selected, false otherwise.