Packageorg.springextensions.actionscript.stage.selectors
SVN browsingComposedObjectSelector.as
FisheyeComposedObjectSelector.as
Classpublic class ComposedObjectSelector
ImplementsIObjectSelector

IObjectSelector approving objects if all composing objects are approving the passed object. It will deny it if there is at least one denying it.

Use approveIfUnanimous property to decide whether to "OR" or "AND" composing object selectors (default is "AND" that is the object will be approved just if all object selectors approve it).

Author: Martino Piccinato
Version: $Revision:$, $Date:$, $Author:$
Since: 0.8



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

Sample project: stagewiring (source)


Public Properties
 PropertyDefined by
  approveIfUnanimous : Boolean
[write-only]
ComposedObjectSelector
  objectSelectors : Array
[write-only]
ComposedObjectSelector
Public Methods
 MethodDefined by
  
ComposedObjectSelector(objectSelectors:Array = null, approveIfUnanimous:Boolean = true)
Creates a new ComposedObjectSelector.
ComposedObjectSelector
  
approve(object:Object):Boolean
ComposedObjectSelector
Property detail
approveIfUnanimousproperty
approveIfUnanimous:Boolean  [write-only]

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

Implementation
    public function set approveIfUnanimous(value:Boolean):void
objectSelectorsproperty 
objectSelectors:Array  [write-only]

Implementation
    public function set objectSelectors(value:Array):void
Constructor detail
ComposedObjectSelector()constructor
public function ComposedObjectSelector(objectSelectors:Array = null, approveIfUnanimous:Boolean = true)

Creates a new ComposedObjectSelector.

Parameters
objectSelectors:Array (default = null)Array containing all IObjectSelector that will be iterated to approve or deny the passed object.
 
approveIfUnanimous:Boolean (default = true) — if true it will approve the object on first approval.
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.