| Package | xp.locales |
| Class | public class LocaleData |
| Inheritance | LocaleData mx.resources.ResourceBundle |
| Subclasses | Locale_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 |
| Property | Defined by | ||
|---|---|---|---|
| hasContent : Boolean [read-only]
| LocaleData | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor
| LocaleData | ||
|
getAmPmMarkers():Array
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 | ||
|
getCurrencySymbols():Array
Returns an array of currency symbols for this locale.
| LocaleData | ||
|
getDateTimeElements():Array
Return an array of DateTime elements for this locale.
| LocaleData | ||
|
getDateTimePatterns():Array
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 | ||
|
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
| LocaleData | ||
|
getNumberPatterns():Array
Returns an array of Number patterns fro this locale.
| LocaleData | ||
|
getObject(key:String):Object
Gets an object from a ResourceBundle.
| LocaleData | ||
|
getShortMonths():Array
Returns an array of month abbreviation for this locale.
| LocaleData | ||
|
getShortWeekdays():Array
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 | ||
| hasContent | property |
hasContent:Boolean [read-only]Implementation
public function get hasContent():Boolean
| LocaleData | () | constructor |
public function LocaleData()Constructor
| getAmPmMarkers | () | method |
public function getAmPmMarkers():ArrayReturns an array of AmPm strings for this locale. The array contains two elements am and pm
ReturnsArray |
| getCountry | () | method |
public function getCountry():StringReturns the country/region code for this locale, which will either be the empty string or an upercase ISO 3166 2-letter code.
ReturnsString |
| getCurrencySymbols | () | method |
public function getCurrencySymbols():ArrayReturns an array of currency symbols for this locale. The array contains these symbols ISO code, symbol
ReturnsArray |
| getDateTimeElements | () | method |
public function getDateTimeElements():ArrayReturn 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)
ReturnsArray |
| getDateTimePatterns | () | method |
public function getDateTimePatterns():ArrayReturn 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
ReturnsArray |
| getEras | () | method |
public function getEras():ArrayReturns an array of AmPm strings for this locale. The array contains two elements am and pm
ReturnsArray |
| getLanguage | () | method |
public function getLanguage():StringReturns the language code for this locale, which will either be the empty string or a lowercase ISO 639 code.
ReturnsString |
| getLocale | () | method |
public function getLocale():Locale
Returns
Locale |
| getLocaleData | () | method |
public static function getLocaleData(locale:Locale):LocaleDataGets a class or properties backed ResourceBundle for a given Locale
Parameterslocale:Locale |
LocaleData |
| getMonths | () | method |
public function getMonths():ArrayReturns an array of months for this locale.
ReturnsArray |
| getName | () | method |
public function getName():String
Returns
String |
| getNumberElements | () | method |
public function getNumberElements():ArrayReturns 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
ReturnsArray |
| getNumberPatterns | () | method |
public function getNumberPatterns():ArrayReturns an array of Number patterns fro this locale. The array contains these patterns number,currency,percent
ReturnsArray |
| 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.
key:String |
Object |
See also
[ResourceBundle("MyBundle")]
private static var rb:ResourceBundle;
var sprite:SpriteAsset = SpriteAsset(rb.getObject("myPic"));
| getShortMonths | () | method |
public function getShortMonths():ArrayReturns an array of month abbreviation for this locale.
ReturnsArray |
| getShortWeekdays | () | method |
public function getShortWeekdays():ArrayReturns an array of abbreviated weekdays for this locale.
ReturnsArray |
| getStringArray | () | method |
public override function getStringArray(key:String):ArrayReturns an array of strings
Parameterskey:String |
Array |
| getWeekdays | () | method |
public function getWeekdays():ArrayReturns an array of weekdays for this locale.
ReturnsArray |
| setCustomLocaleData | () | method |
public static function setCustomLocaleData(localeData:LocaleData, data:Object):voidLoad the data from a properties file into the ResourceBundle
ParameterslocaleData:LocaleData |
|
data:Object |
| toProperties | () | method |
public function toProperties():ObjectConvert the ResourceBundle class to a properties object
ReturnsObject |
| toString | () | method |
public function toString():String
Returns
String |