Packageorg.springextensions.actionscript.stage.selectors
SVN browsingPropertyValueBasedObjectSelector.as
FisheyePropertyValueBasedObjectSelector.as
Classpublic class PropertyValueBasedObjectSelector
ImplementsIObjectSelector

IObjectSelector that only approves objects that have a specified property whose value is not empty.

See also

LocalizationStageProcessor


Documentation reference: the localizationstageprocessor class

Sample project: localization (source)


Public Properties
 PropertyDefined by
  propertyName : String
The name of the property whose value will be evaluated by the current LocalizationObjectSelector
PropertyValueBasedObjectSelector
Public Methods
 MethodDefined by
  
Creates a new LocalizationObjectSelector instance.
PropertyValueBasedObjectSelector
  
approve(object:Object):Boolean

First checks if the specified object has a property with the name specified by the propertyName property, if so, it approves the object if the value of the specified property is non-empty.

PropertyValueBasedObjectSelector
Property detail
propertyNameproperty
propertyName:String  [read-write]

The name of the property whose value will be evaluated by the current LocalizationObjectSelector

The default value is id.

Implementation
    public function get propertyName():String
    public function set propertyName(value:String):void
Constructor detail
PropertyValueBasedObjectSelector()constructor
public function PropertyValueBasedObjectSelector()

Creates a new LocalizationObjectSelector instance.

Method detail
approve()method
public function approve(object:Object):Boolean

First checks if the specified object has a property with the name specified by the propertyName property, if so, it approves the object if the value of the specified property is non-empty.

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

Returns
Booleantrue if the object is selected, false otherwise.