Packageorg.springextensions.actionscript.objects
SVN browsingSimpleTypeConverter.as
FisheyeSimpleTypeConverter.as
Classpublic class SimpleTypeConverter
InheritanceSimpleTypeConverter Inheritance PropertyEditorRegistrySupport
ImplementsITypeConverter

Simple implementation of the ITypeConverter interface.

Author: Christophe Herreman
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1



Public Properties
 PropertyDefined by
 InheritedapplicationDomain : ApplicationDomain
PropertyEditorRegistrySupport
Public Methods
 MethodDefined by
  
SimpleTypeConverter(applicationDomain:ApplicationDomain)
Creates a new SimpleTypeConverter instance.
SimpleTypeConverter
  
convertIfNecessary(value:*, requiredType:Class = null):*
Convert the given value to the required type.
SimpleTypeConverter
 Inherited
findCustomEditor(requiredType:Class):IPropertyEditor
Finds a property editor that was registered against the given type.
PropertyEditorRegistrySupport
 Inherited
registerCustomEditor(requiredType:Class, propertyEditor:IPropertyEditor):void
Registers the given property editor for the given type.
PropertyEditorRegistrySupport
Constructor detail
SimpleTypeConverter()constructor
public function SimpleTypeConverter(applicationDomain:ApplicationDomain)

Creates a new SimpleTypeConverter instance.

Parameters
applicationDomain:ApplicationDomain
Method detail
convertIfNecessary()method
public function convertIfNecessary(value:*, requiredType:Class = null):*

Convert the given value to the required type.

Parameters
value:* — the value to convert
 
requiredType:Class (default = null) — the type to convert to

Returns
*