de.cbse.jeasy
Class JELocale
java.lang.Object
de.cbse.jeasy.JEObject
de.cbse.jeasy.JELocale
public class JELocale
- extends JEObject
Implements a java Locale.
A JELocale is to be defined inside the Repository.
When defining the properties you are able to define different ones for different JELocale.
A JELocale may be set from the application by JEObject.setApplLocale((JELocale)JEUtil.getJO("LC_MyLocale"));
After a refresh of the component by calling JEUtil.getJP("PA_MyPanel").refresh(), the new properties will be active.
See a demonstration in the program JEasyExample tab "Locale".
Properties :
- id
The unique id of the root object.
- referenceId
A reference for this jeasy object used to identify this type of jeasy object even if it was cloned. It is used for locale properties of the object and may be used for identification in messages. If no reference is set, the jeasy id will be set as default.
- language (possible values [aa Afar, ab Abkhazian, af Afrikaans, am Amharic, ar Arabic, as Assamese, ay Aymara, az Azerbaijani, ba Bashkir, be Byelorussian, bg Bulgarian, bh Bihari, bi Bislama, bn Bengali Bangla, bo Tibetan, br Breton, ca Catalan, co Corsican, cs Czech, cy Welsh, da Danish, de German, dz Bhutani, el Greek, en English American, eo Esperanto, es Spanish, et Estonian, eu Basque, fa Persian, fi Finnish, fj Fiji, fo Faeroese, fr French, fy Frisian, ga Irish, gd Gaelic Scots Gaelic, gl Galician, gn Guarani, gu Gujarati, ha Hausa, hi Hindi, hr Croatian, hu Hungarian, hy Armenian, ia Interlingua, ie Interlingue, ik Inupiak, in Indonesian, is Icelandic, it Italian, iw Hebrew, ja Japanese, ji Yiddish, jw Javanese, ka Georgian, kk Kazakh, kl Greenlandic, km Cambodian, kn Kannada, ko Korean, ks Kashmiri, ku Kurdish, ky Kirghiz, la Latin, ln Lingala, lo Laothian, lt Lithuanian, lv Latvian Lettish, mg Malagasy, mi Maori, mk Macedonian, ml Malayalam, mn Mongolian, mo Moldavian, mr Marathi, ms Malay, mt Maltese, my Burmese, na Nauru, ne Nepali, nl Dutch, no Norwegian, oc Occitan, om Oromo Afan, or Oriya, pa Punjabi, pl Polish, ps Pashto Pushto, pt Portuguese, qu Quechua, rm Rhaeto-Romance, rn Kirundi, ro Romanian, ru Russian, rw Kinyarwanda, sa Sanskrit, sd Sindhi, sg Sangro, sh Serbo-Croatian, si Singhalese, sk Slovak, sl Slovenian, sm Samoan, sn Shona, so Somali, sq Albanian, sr Serbian, ss Siswati, st Sesotho, su Sudanese, sv Swedish, sw Swahili, ta Tamil, te Tegulu, tg Tajik, th Thai, ti Tigrinya, tk Turkmen, tl Tagalog, tn Setswana, to Tonga, tr Turkish, ts Tsonga, tt Tatar, tw Twi, uk Ukrainian, ur Urdu, uz Uzbek, vi Vietnamese, vo Volapuk, wo Wolof, xh Xhosa, yo Yoruba, zh Chinese, zu Zulu])
The ISO Code 639 to select a language in lowercase characters.
- country (possible values [AD Andorra, AE United Arab Emirates, AF Afghanistan, AG Antigua & Barbuda, AI Anguilla, AL Albania, AM Armenia, AN Netherlands Antilles, AO Angola, AQ Antarctica, AR Argentina, AS American Samoa, AT Austria, AU Australia, AW Aruba, AZ Azerbaijan, BA Bosnia and Herzegovina, BB Barbados, BD Bangladesh, BE Belgium, BF Burkina Faso, BG Bulgaria, BH Bahrain, BI Burundi, BJ Benin, BM Bermuda, BN Brunei Darussalam, BO Bolivia, BR Brazil, BS Bahama, BT Bhutan, BU Burma (no longer exists), BV Bouvet Island, BW Botswana, BY Belarus, BZ Belize, CA Canada, CC Cocos (Keeling) Islands, CF Central African Republic, CG Congo, CH Switzerland, CK Cook Iislands, CL Chile, CM Cameroon, CN China, CO Colombia, CR Costa Rica, CU Cuba, CV Cape Verde, CX Christmas Island, CY Cyprus, CZ Czech Republic, DE Germany, DJ Djibouti, DK Denmark, DM Dominica, DO Dominican Republic, DZ Algeria, EC Ecuador, EE Estonia, EG Egypt, EH Western Sahara, ER Eritrea, ES Spain, ET Ethiopia, FI Finland, FJ Fiji, FK Falkland Islands (Malvinas), FM Micronesia, FO Faroe Islands, FR France, FX France, Metropolitan, GA Gabon, GB United Kingdom (Great Britain), GD Grenada, GE Georgia, GF French Guiana, GH Ghana, GI Gibraltar, GL Greenland, GM Gambia, GN Guinea, GP Guadeloupe, GQ Equatorial Guinea, GR Greece, GS South Georgia and the South Sandwich Islands, GT Guatemala, GU Guam, GW Guinea-Bissau, GY Guyana, HK Hong Kong, HM Heard & McDonald Islands, HN Honduras, HR Croatia, HT Haiti, HU Hungary, ID Indonesia, IE Ireland, IL Israel, IN India, IO British Indian Ocean Territory, IQ Iraq, IR Islamic Republic of Iran, IS Iceland, IT Italy, JM Jamaica, JO Jordan, JP Japan, KE Kenya, KG Kyrgyzstan, KH Cambodia, KI Kiribati, KM Comoros, KN St. Kitts and Nevis, KP Korea, Democratic People's Republic of, KR Korea, Republic of, KW Kuwait, KY Cayman Islands, KZ Kazakhstan, LA Lao People's Democratic Republic, LB Lebanon, LC Saint Lucia, LI Liechtenstein, LK Sri Lanka, LR Liberia, LS Lesotho, LT Lithuania, LU Luxembourg, LV Latvia, LY Libyan Arab Jamahiriya, MA Morocco, MC Monaco, MD Moldova, Republic of, MG Madagascar, MH Marshall Islands, ML Mali, MN Mongolia, MM Myanmar, MO Macau, MP Northern Mariana Islands, MQ Martinique, MR Mauritania, MS Monserrat, MT Malta, MU Mauritius, MV Maldives, MW Malawi, MX Mexico, MY Malaysia, MZ Mozambique, NA Namibia, NC New Caledonia, NE Niger, NF Norfolk Island, NG Nigeria, NI Nicaragua, NL Netherlands, NO Norway, NP Nepal, NR Nauru, NT Neutral Zone (no longer exists), NU Niue, NZ New Zealand, OM Oman, PA Panama, PE Peru, PF French Polynesia, PG Papua New Guinea, PH Philippines, PK Pakistan, PL Poland, PM St. Pierre & Miquelon, PN Pitcairn, PR Puerto Rico, PT Portugal, PW Palau, PY Paraguay, QA Qatar, RE Reunion, RO Romania, RU Russian Federation, RW Rwanda, SA Saudi Arabia, SB Solomon Islands, SC Seychelles, SD Sudan, SE Sweden, SG Singapore, SH St. Helena, SI Slovenia, SJ Svalbard & Jan Mayen Islands, SK Slovakia, SL Sierra Leone, SM San Marino, SN Senegal, SO Somalia, SR Suriname, ST Sao Tome & Principe, SU Union of Soviet Socialist Republics (no longer exists), SV El Salvador, SY Syrian Arab Republic, SZ Swaziland, TC Turks & Caicos Islands, TD Chad, TF French Southern Territories, TG Togo, TH Thailand, TJ Tajikistan, TK Tokelau, TM Turkmenistan, TN Tunisia, TO Tonga, TP East Timor, TR Turkey, TT Trinidad & Tobago, TV Tuvalu, TW Taiwan, Province of China, TZ Tcoania, United Republic of, UA Ukraine, UG Uganda, UM United States Minor Outlying Islands, US United States of America, UY Uruguay, UZ Uzbekistan, VA Vatican City State (Holy See), VC St. Vincent & the Grenadines, VE Venezuela, VG British Virgin Islands, VI United States Virgin Islands, VN Viet Nam, VU Vanuatu, WF Wallis & Futuna Islands, WS Samoa, YD Democratic Yemen (no longer exists), YE Yemen, YT Mayotte, YU Yugoslavia, ZA South Africa, ZM Zambia, ZR Zaire, ZW Zimbabwe, ZZ Unknown or unspecified country])
The ISO Code 639 to select a country in lowercase characters.
- variant
Sets the vendor specific entry of a locale.
- Author:
- Harry Pfohl
|
Field Summary |
(package private) java.util.Locale |
locale
|
| Fields inherited from class de.cbse.jeasy.JEObject |
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, parentId, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW |
|
Method Summary |
java.util.Locale |
getLocale()
Gets the font; |
void |
init()
Creates Java or SWING objects with the given properties. |
| Methods inherited from class de.cbse.jeasy.JEObject |
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getParentId, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setParentId, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, setupComponent, show, timerTask |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
locale
java.util.Locale locale
JELocale
public JELocale(JELocaleProperties hm)
- Reads the properties from a HashMap
- Parameters:
hm - HashMap
JELocale
public JELocale(JENode jen)
- Constructor based on a XML file parsed to a TreeNode.
- Parameters:
jen - - See Also:
JESaxParser
init
public void init()
- Description copied from class:
JEObject
- Creates Java or SWING objects with the given properties.
- Overrides:
init in class JEObject
getLocale
public java.util.Locale getLocale()
- Gets the font;
- Returns: