new Locale ( object_string_language );
method : new Locale ( object_string_language );
return type : Locale
content : ใช้สร้าง object locale หร้อมกับกำหนดรหัสภาษา
example : Locale locale = new Locale ( "th" );
new Locale ( object_string_language, object_string_country );
method : new Locale ( object_string_language, object_string_country );
return type : Locale
content : ใช้สร้าง object locale หร้อมกับกำหนดรหัสภาษา
และรหัสประเทศ
example : Locale locale = new Locale ( "th", "TH" );
setDefault ( object_locale );
method : setDefault ( object_locale );
return type : void
special : static
content : ใช้กำหนดค่า default ให้ Locale
example : Locale.setDefault ( locale );
getDefault ();
method : getDefault ();
return type : Locale
special : static
content : ใช้คืนค่า default ของ locale
example : Locale locale = Locale.getDefault ();
getLanguage ();
method : getLanguage ();
return type : String
content : ใช้คืนค่า รหัสภาษา ของ Locale นั้นๆ
example : Locale locale = new Locale ( "th", "TH" ); String language_code = locale.getLanguage ();
getCountry ();
method : getCountry ();
return type : String content : ใช้คืนค่า รหัสประเทศ ของ Locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
String country_code = locale.getCountry ();
getVariant ();
method : getVariant ();
return type : String content : ใช้คืนค่า variant code ของ Locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
return type : String content : ใช้คืนค่า variant code ของ Locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
String string_variant = locale.getVariant ();
getDisplayLanguage ();
method : getDisplayLanguage ();
return type : String content : ใช้คืนค่า ชื่อภาษา ของ locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
return type : String content : ใช้คืนค่า ชื่อภาษา ของ locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
String string_display_language
= locale.getDisplayLanguage ();
getDisplayLanguage ( locale_constant );
method : getDisplayLanguage ( locale_constant );
return type : String content : ใช้คืนค่า ชื่อภาษา ของ locale จากค่าคงที่ที่กำหนด example : Locale locale = new Locale ( "th", "TH" );
String string_display_language
= locale.getDisplayLanguage ( Locale.CHINA );
getDisplayCountry ();
method : getDisplayCountry ();
return type : String content : ใช้คืนค่า ชื่อประเทศ ของ locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
return type : String content : ใช้คืนค่า ชื่อประเทศ ของ locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
String string_display_country
= locale.getDisplayCountry ();
getDisplayCountry ( locale_constant );
method : getDisplayCountry ( locale_constant );
return type : String content : ใช้คืนค่า ชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด example : Locale locale = new Locale ( "th", "TH" );
return type : String content : ใช้คืนค่า ชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด example : Locale locale = new Locale ( "th", "TH" );
String string_display_country
= locale.getDisplayCountry ( Locale.CHINESE );
getDisplayName ();
method : getDisplayName ();
return type : String content : ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
return type : String content : ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale นั้นๆ example : Locale locale = new Locale ( "th", "TH" );
String string_display_name
= locale.getDisplayName ();
getDisplayName ( locale_constant );
method : getDisplayName ( locale_constant );
return type : String content : ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด example : Locale locale = new Locale ( "th", "TH" );
return type : String content : ใช้คืนค่า ชื่อภาษาและชื่อประเทศ ของ locale จากค่าคงที่ที่กำหนด example : Locale locale = new Locale ( "th", "TH" );
String string_display_name
= locale.getDisplayName ( Locale.CHINA );
getISOLanguages ();
method : getISOLanguages ();
return type : String Array special : static content : ใช้คืนค่า รหัสภาษา ทั้งหมด example : String [] string_language
return type : String Array special : static content : ใช้คืนค่า รหัสภาษา ทั้งหมด example : String [] string_language
= Locale.getISOLanguages ();
getISOCountries ();
method : getISOCountries ();
return type : String Array special : static content : ใช้คืนค่า รหัสประเทศ ทั้งหมด example : String [] string_country
return type : String Array special : static content : ใช้คืนค่า รหัสประเทศ ทั้งหมด example : String [] string_country
= Locale.getISOCountries ();
getAvailableLocales ();
method : getAvailableLocales ();
return type : Locale Array special : static content : ใช้คืนค่า object locale ทั้งหมด ที่ระบบมี example : Locale [] locales
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
ไม่มีความคิดเห็น:
แสดงความคิดเห็น