| Package | xp.core |
| Class | public dynamic class ApplicationProperties |
| Inheritance | ApplicationProperties flash.utils.Dictionary |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| defaultDateDataFormat | property |
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
| defaultDateDisplayFormat | property |
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
| ApplicationProperties | () | constructor |
public function ApplicationProperties()
| getBooleanProperty | () | method |
public function getBooleanProperty(name:String, defaultValue:Boolean = false):BooleanGet the named application property as an Boolean. If the property value is null the default value wil be returned
Parametersname:String |
|
defaultValue:Boolean (default = false) |
Boolean |
| getInstance | () | method |
public static function getInstance():ApplicationPropertiesReturns 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
ReturnsApplicationProperties |
| getNumberProperty | () | method |
public function getNumberProperty(name:String, defaultValue:Number):NumberGet the named application property as an Number. If the property value is null the default value wil be returned
Parametersname:String |
|
defaultValue:Number |
Number |
| getObjectProperty | () | method |
public function getObjectProperty(name:String, defaultValue:Object = null):ObjectGet the named application property as an Object. If the property value is null the default value wil be returned
Parametersname:String |
|
defaultValue:Object (default = null) |
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
Parametersname:String |
|
defaultValue:* (default = null) |
* |
| getStringProperty | () | method |
public function getStringProperty(name:String, defaultValue:String = null):StringGet the named application property as an String. If the property value is null the default value wil be returned
Parametersname:String |
|
defaultValue:String (default = null) |
String |