| new Locale( object_string_language ) | ใช้สร้าง object locale หร้อมกับกำหนดรหัสภาษา |
|---|---|
| new Locale( object_string_language, object_string_country ) | ใช้สร้าง object locale หร้อมกับกำหนดรหัสภาษา และรหัสประเทศ |
| setDefault() | ใช้กำหนดค่า default ให้ Locale |
| getDefault() | ใช้คืนค่า default ของ locale |
| getLanguage() | ใช้คืนค่า รหัสภาษา ของ Locale นั้นๆ |
| getCountry() | ใช้คืนค่า รหัสประเทศ ของ Locale นั้นๆ |
| getVariant() | ใช้คืนค่า variant code ของ Locale นั้นๆ |
| getDisplayLanguage() | ใช้คืนค่า ชื่อภาษา ของ locale นั้นๆ |
| getDisplayLanguage() | ใช้คืนค่า ชื่อภาษา ของ locale จากค่าคงที่ที่กำหนด |
| getDisplayCountry() | ใช้คืนค่า ชื่อประเทศ ของ locale นั้นๆ |
| getDisplayCountry() | ใช้คืนค่า ชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด |
| getDisplayName() | ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale นั้นๆ |
| getDisplayName() | ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด |
| getISOLanguages() | ใช้คืนค่า รหัสภาษา ทั้งหมด |
| getISOCountries() | ใช้คืนค่า รหัสประเทศ ทั้งหมด |
| getAvailableLocales() | ใช้คืนค่า object locale ทั้งหมด ที่ระบบมี |
| รหัสภาษา ของระบบ ที่ใช้ใน java | ได้แก่ zh, da, nl, en, ja, ko, fr, no, fn, fi, de, el, pt, sp, sv, tr เป็นต้น |
| รหัสประเทศ ของระบบ ที่ใช้ใน Java | ได้แก่ AT, BE, CA, CN, DK, FI, DE, GR, IE, IT, JP, KR, NL, NO, GB, PT, SE, TW, US, ES, CH, TR เป็นต้น |
method:new Locale ( object_string_language );
return type:Locale
content:ใช้สร้าง object locale หร้อมกับกำหนดรหัสภาษา
example:Locale locale = new Locale ( "th" );
method:new Locale ( object_string_language, object_string_country );
return type:Locale
content:ใช้สร้าง object locale หร้อมกับกำหนดรหัสภาษา และรหัสประเทศ
example:Locale locale = new Locale ( "th", "TH" );
method:setDefault ( object_locale );
return type:void
special:static
content:ใช้กำหนดค่า default ให้ Locale
example:Locale.setDefault ( locale );
method:getDefault ();
return type:Locale
special:static
content:ใช้คืนค่า default ของ locale
example:Locale locale = Locale.getDefault ();
method:getLanguage ();
return type:String
content:ใช้คืนค่า รหัสภาษา ของ Locale นั้นๆ
example:Locale locale = new Locale ( "th", "TH" ); String language_code = locale.getLanguage ();
method:getCountry ();
return type:String
content:ใช้คืนค่า รหัสประเทศ ของ Locale นั้นๆ
example:Locale locale = new Locale ( "th", "TH" ); String country_code = locale.getCountry ();
method:getVariant ();
return type:String
content:ใช้คืนค่า variant code ของ Locale นั้นๆ
example:Locale locale = new Locale ( "th", "TH" ); String string_variant = locale.getVariant ();
method:getDisplayLanguage ();
return type:String
content:ใช้คืนค่า ชื่อภาษา ของ locale นั้นๆ
example:Locale locale = new Locale ( "th", "TH" ); String string_display_language = locale.getDisplayLanguage ();
method:getDisplayLanguage ( locale_constant );
return type:String
content:ใช้คืนค่า ชื่อภาษา ของ locale จากค่าคงที่ที่กำหนด
example:Locale locale = new Locale ( "th", "TH" ); String string_display_language = locale.getDisplayLanguage ( Locale.CHINA );
method:getDisplayCountry ();
return type:String
content:ใช้คืนค่า ชื่อประเทศ ของ locale นั้นๆ
example:Locale locale = new Locale ( "th", "TH" ); String string_display_country = locale.getDisplayCountry ();
method:getDisplayCountry ( locale_constant );
return type:String
content:ใช้คืนค่า ชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด
example:Locale locale = new Locale ( "th", "TH" ); String string_display_country = locale.getDisplayCountry ( Locale.CHINESE );
method:getDisplayName ();
return type:String
content:ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale นั้นๆ
example:Locale locale = new Locale ( "th", "TH" ); String string_display_name = locale.getDisplayName ();
method:getDisplayName ( locale_constant );
return type:String
content:ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด
example:Locale locale = new Locale ( "th", "TH" ); String string_display_name = locale.getDisplayName ( Locale.CHINA );
method:getISOLanguages ();
return type:String Array
special:static
content:ใช้คืนค่า รหัสภาษา ทั้งหมด
example:String [] string_language = Locale.getISOLanguages ();
method:getISOCountries ();
return type:String Array
special:static
content:ใช้คืนค่า รหัสประเทศ ทั้งหมด
example:String [] string_country = Locale.getISOCountries ();
method:getAvailableLocales ();
return type:Locale Array
special:static
content:ใช้คืนค่า object locale ทั้งหมด ที่ระบบมี
example:Locale [] locales = Locale.getAvailableLocales ();
subject:รหัสภาษา ของระบบ ที่ใช้ใน java
content:รหัสภาษา ของระบบ ที่ใช้ใน java ได้แก่ zh คือ Chinese da คือ Danish nl คือ Dutch en คือ English it คือ Italian ja คือ Japanese ko คือ Korean no คือ Norwegian fr คือ French fi คือ Finnish de คือ German el คือ Greek pt คือ Portuguese sp คือ Spanish sv คือ Swedish tr คือ Turkish
subject:รหัสประเทศ ของระบบ ที่ใช้ใน Java
content:รหัสประเทศ ของระบบ ที่ใช้ใน Java ได้แก่ AT คือ Austria BE คือ Belgium CA คือ Canada CN คือ China DK คือ Denmark FI คือ Finland DE คือ Germany GR คือ Greece IE คือ Ireland IT คือ Italy JP คือ Japan KR คือ Korea NL คือ The Netherlands NO คือ Norway GB คือ Great Britain PT คือ Portugal SE คือ Sweden TW คือ Taiwan US คือ United States ES คือ Spain CH คือ Switzerland TR คือ Turkey