Packagexp.locales
Classpublic class LocaleData
InheritanceLocaleData Inheritance mx.resources.ResourceBundle
SubclassesLocale_ar, Locale_be, Locale_bg, Locale_ca, Locale_cs, Locale_da, Locale_de, Locale_el, Locale_en, Locale_es, Locale_et, Locale_fi, Locale_fr, Locale_hi_IN, Locale_hr, Locale_hu, Locale_is, Locale_it, Locale_iw, Locale_ja, Locale_ko, Locale_lt, Locale_lv, Locale_mk, Locale_nl, Locale_no, Locale_pl, Locale_pt, Locale_ro, Locale_ru, Locale_sh, Locale_sk, Locale_sl, Locale_sq, Locale_sr, Locale_sv, Locale_th, Locale_tr, Locale_uk, Locale_zh



Public Properties
 PropertyDefined by
  hasContent : Boolean
[read-only]
LocaleData
Public Methods
 MethodDefined by
  
Constructor
LocaleData
  
Returns an array of AmPm strings for this locale.
LocaleData
  
getCountry():String
Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
LocaleData
  
Returns an array of currency symbols for this locale.
LocaleData
  
Return an array of DateTime elements for this locale.
LocaleData
  
Return an array of DateTime patterns for this locale.
LocaleData
  
getEras():Array
Returns an array of AmPm strings for this locale.
LocaleData
  
getLanguage():String
Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
LocaleData
  
getLocale():Locale
LocaleData
  
getLocaleData(locale:Locale):LocaleData
[static] Gets a class or properties backed ResourceBundle for a given Locale
LocaleData
  
getMonths():Array
Returns an array of months for this locale.
LocaleData
  
getName():String
LocaleData
  
Returns an array of number elements for this locale The array contains these elements decimal,group,list,percentSign,nativeZeroDigit,patternDigit,plusSign,minusSign,exponential,perMille,infinity,nan
LocaleData
  
Returns an array of Number patterns fro this locale.
LocaleData
  
getObject(key:String):Object
Gets an object from a ResourceBundle.
LocaleData
  
Returns an array of month abbreviation for this locale.
LocaleData
  
Returns an array of abbreviated weekdays for this locale.
LocaleData
  
getStringArray(key:String):Array
Returns an array of strings
LocaleData
  
getWeekdays():Array
Returns an array of weekdays for this locale.
LocaleData
  
setCustomLocaleData(localeData:LocaleData, data:Object):void
[static] Load the data from a properties file into the ResourceBundle
LocaleData
  
toProperties():Object
Convert the ResourceBundle class to a properties object
LocaleData
  
toString():String
LocaleData
Property detail
hasContentproperty
hasContent:Boolean  [read-only]Implementation
    public function get hasContent():Boolean
Constructor detail
LocaleData()constructor
public function LocaleData()

Constructor

Method detail
getAmPmMarkers()method
public function getAmPmMarkers():Array

Returns an array of AmPm strings for this locale. The array contains two elements am and pm

Returns
Array
getCountry()method 
public function getCountry():String

Returns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.

Returns
String
getCurrencySymbols()method 
public function getCurrencySymbols():Array

Returns an array of currency symbols for this locale. The array contains these symbols ISO code, symbol

Returns
Array
getDateTimeElements()method 
public function getDateTimeElements():Array

Return an array of DateTime elements for this locale. The array contains first day of week(1=sun,2=Mon), min days in first week(1 or 4)

Returns
Array
getDateTimePatterns()method 
public function getDateTimePatterns():Array

Return an array of DateTime patterns for this locale. The array contains these patterns time-full,long,medium,short//date-full,long,medium,short,date-time

Returns
Array
getEras()method 
public function getEras():Array

Returns an array of AmPm strings for this locale. The array contains two elements am and pm

Returns
Array
getLanguage()method 
public function getLanguage():String

Returns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.

Returns
String
getLocale()method 
public function getLocale():Locale

Returns
Locale
getLocaleData()method 
public static function getLocaleData(locale:Locale):LocaleData

Gets a class or properties backed ResourceBundle for a given Locale

Parameters
locale:Locale

Returns
LocaleData
getMonths()method 
public function getMonths():Array

Returns an array of months for this locale.

Returns
Array
getName()method 
public function getName():String

Returns
String
getNumberElements()method 
public function getNumberElements():Array

Returns an array of number elements for this locale The array contains these elements decimal,group,list,percentSign,nativeZeroDigit,patternDigit,plusSign,minusSign,exponential,perMille,infinity,nan

Returns
Array
getNumberPatterns()method 
public function getNumberPatterns():Array

Returns an array of Number patterns fro this locale. The array contains these patterns number,currency,percent

Returns
Array
getObject()method 
public override function getObject(key:String):Object

Gets an object from a ResourceBundle. The folowing example shows how to get a jpg image with the getObject() method.

Parameters
key:String

Returns
Object

See also


Example
   [ResourceBundle("MyBundle")]
   private static var rb:ResourceBundle;
   var sprite:SpriteAsset = SpriteAsset(rb.getObject("myPic"));
   

getShortMonths()method 
public function getShortMonths():Array

Returns an array of month abbreviation for this locale.

Returns
Array
getShortWeekdays()method 
public function getShortWeekdays():Array

Returns an array of abbreviated weekdays for this locale.

Returns
Array
getStringArray()method 
public override function getStringArray(key:String):Array

Returns an array of strings

Parameters
key:String

Returns
Array
getWeekdays()method 
public function getWeekdays():Array

Returns an array of weekdays for this locale.

Returns
Array
setCustomLocaleData()method 
public static function setCustomLocaleData(localeData:LocaleData, data:Object):void

Load the data from a properties file into the ResourceBundle

Parameters
localeData:LocaleData
 
data:Object
toProperties()method 
public function toProperties():Object

Convert the ResourceBundle class to a properties object

Returns
Object
toString()method 
public function toString():String

Returns
String