Packagexp.core
Classpublic dynamic class ApplicationProperties
InheritanceApplicationProperties Inheritance flash.utils.Dictionary



Public Properties
 PropertyDefined by
  defaultDateDataFormat : String = "yyyy-MM-ddTHH:mm:ss.Sz"
The pattern to convert string server data to dates.
ApplicationProperties
  defaultDateDisplayFormat : String = "short"
The default date display format to select from the preset locale definitions.
ApplicationProperties
Public Methods
 MethodDefined by
  
ApplicationProperties
  
getBooleanProperty(name:String, defaultValue:Boolean = false):Boolean
Get the named application property as an Boolean.
ApplicationProperties
  
[static] Returns an instance of the ApplicationProperties.
ApplicationProperties
  
getNumberProperty(name:String, defaultValue:Number):Number
Get the named application property as an Number.
ApplicationProperties
  
getObjectProperty(name:String, defaultValue:Object = null):Object
Get the named application property as an Object.
ApplicationProperties
  
getProperty(name:String, defaultValue:* = null):*
Get the named application property.
ApplicationProperties
  
getStringProperty(name:String, defaultValue:String = null):String
Get the named application property as an String.
ApplicationProperties
Property detail
defaultDateDataFormatproperty
public var defaultDateDataFormat:String = "yyyy-MM-ddTHH:mm:ss.Sz"

The pattern to convert string server data to dates. The default is the ISO8601 pattern

See also

defaultDateDisplayFormatproperty 
public var defaultDateDisplayFormat:String = "short"

The default date display format to select from the preset locale definitions. One of full,long,medium,short;

See also

Constructor detail
ApplicationProperties()constructor
public function ApplicationProperties()
Method detail
getBooleanProperty()method
public function getBooleanProperty(name:String, defaultValue:Boolean = false):Boolean

Get the named application property as an Boolean. If the property value is null the default value wil be returned

Parameters
name:String
 
defaultValue:Boolean (default = false)

Returns
Boolean
getInstance()method 
public static function getInstance():ApplicationProperties

Returns an instance of the ApplicationProperties. ApplicationPropeties is a singleton class, only one should exist per application. You should either declare an instance in your mxml file by adding the ApplicationProperties tag or one will be automatically created when required

Returns
ApplicationProperties
getNumberProperty()method 
public function getNumberProperty(name:String, defaultValue:Number):Number

Get the named application property as an Number. If the property value is null the default value wil be returned

Parameters
name:String
 
defaultValue:Number

Returns
Number
getObjectProperty()method 
public function getObjectProperty(name:String, defaultValue:Object = null):Object

Get the named application property as an Object. If the property value is null the default value wil be returned

Parameters
name:String
 
defaultValue:Object (default = null)

Returns
Object
getProperty()method 
public function getProperty(name:String, defaultValue:* = null):*

Get the named application property. If the property value is null the default value wil be returned

Parameters
name:String
 
defaultValue:* (default = null)

Returns
*
getStringProperty()method 
public function getStringProperty(name:String, defaultValue:String = null):String

Get the named application property as an String. If the property value is null the default value wil be returned

Parameters
name:String
 
defaultValue:String (default = null)

Returns
String