Package org.vaadin.hugerte
Enum Class Language
- All Implemented Interfaces:
Serializable,Comparable<Language>,Constable,ClientSideReference
This enumeration represents all available languages for the HugeRTE.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlbanian,sq.Arabic,ar.Arabic (Saudi Arabia),ar_SA.Armenian,hy.Azerbaijani,az.Basque,eu.Belarusian,be.Bengali (Bangladesh),bn_BD.Bulgarian (Bulgaria),bg_BG.Catalan,ca.Chinese (China),zh_CN.Chinese (Hong Kong),zh_HK.Chinese (Macao),zh_MO.Chinese (Singapore),zh_SG.Chinese (Taiwan),zh_TW.Croatian,hr.Czech,cs.Danish,da.Dutch,nl.Dutch (Belgium),nl_BE.Default language.Esperanto,eo.Estonian,et.Finnish,fi.French (France),fr_FR.Galician,gl.Georgian (Georgia),ka_GE.German,de.Greek,el.Hebrew (Israel),he_IL.Hungarian,hu_HU.Icelandic (Iceland),is_IS.Indonesian,id.Irish,ga.Italian,it.Japanese,ja.Kabyle,kab.Kazakh,kk.Korean (Korea),ko_KR.Kurdish,ku.Latvian,lv.Lithuanian,lt.Nepali,ne.Norwegian (Norway),nb_NO.Occitan,oc.Persian,fa.Polish,pl.Portuguese,pt_PT.Portuguese (Brazil),pt_BR.Romanian,ro.Russian,ru.Serbian,sr.Slovak,sk.Slovenian (Slovenia),sl_SI.Spanish,es.Spanish (Mexico),es_MX.Swedish (Sweden),sv_SE.Tajik,tg.Tamil,ta.Thai (Thailand),th_TH.Turkish,tr.Uighur,ug.Ukrainian,uk.Uzbek,uz.Vietnamese,vi.Welsh,cy. -
Method Summary
Modifier and TypeMethodDescriptionstatic LanguageReturns the Language enum member corresponding to the given code.Returns the client side representation of this instance.getCode()Returns the language or country code represented by this instance.static LanguageReturns the enum constant of this class with the specified name.static Language[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENGLISH
Default language. Has no code, since there is no lang file for it, and is optional to be used. So we provide it for the sake of completeness.You can also set "null" on
HugeRte.configureLanguage(Language) -
ARABIC
Arabic,ar. -
AZERBAIJANI
Azerbaijani,az. -
BELARUSIAN
Belarusian,be. -
CATALAN
Catalan,ca. -
CZECH
Czech,cs. -
WELSH
Welsh,cy. -
DANISH
Danish,da. -
GERMAN
German,de. -
GREEK
Greek,el. -
ESPERANTO
Esperanto,eo. -
SPANISH
Spanish,es. -
ESTONIAN
Estonian,et. -
BASQUE
Basque,eu. -
PERSIAN
Persian,fa. -
FINNISH
Finnish,fi. -
IRISH
Irish,ga. -
GALICIAN
Galician,gl. -
CROATIAN
Croatian,hr. -
HUNGARIAN
Hungarian,hu_HU. -
ARMENIAN
Armenian,hy. -
INDONESIAN
Indonesian,id. -
ITALIAN
Italian,it. -
JAPANESE
Japanese,ja. -
KABYLE
Kabyle,kab. -
KAZAKH
Kazakh,kk. -
KURDISH
Kurdish,ku. -
LITHUANIAN
Lithuanian,lt. -
LATVIAN
Latvian,lv. -
NEPALI
Nepali,ne. -
DUTCH
Dutch,nl. -
OCCITAN
Occitan,oc. -
POLISH
Polish,pl. -
PORTUGUESE
Portuguese,pt_PT. -
ROMANIAN
Romanian,ro. -
RUSSIAN
Russian,ru. -
SLOVAK
Slovak,sk. -
ALBANIAN
Albanian,sq. -
SERBIAN
Serbian,sr. -
TAJIK
Tajik,tg. -
TURKISH
Turkish,tr. -
UIGHUR
Uighur,ug. -
UKRAINIAN
Ukrainian,uk. -
UZBEK
Uzbek,uz. -
VIETNAMESE
Vietnamese,vi. -
TAMIL
Tamil,ta. -
ARABIC_SAUDI_ARABIA
Arabic (Saudi Arabia),ar_SA. -
BULGARIAN_BULGARIA
Bulgarian (Bulgaria),bg_BG. -
BENGALI_BANGLADESH
Bengali (Bangladesh),bn_BD. -
SPANISH_MEXICO
Spanish (Mexico),es_MX. -
FRENCH_FRANCE
French (France),fr_FR. -
HEBREW_ISRAEL
Hebrew (Israel),he_IL. -
ICELANDIC_ICELAND
Icelandic (Iceland),is_IS. -
GEORGIAN_GEORGIA
Georgian (Georgia),ka_GE. -
KOREAN_KOREA
Korean (Korea),ko_KR. -
NORWEGIAN_NORWAY
Norwegian (Norway),nb_NO. -
DUTCH_BELGIUM
Dutch (Belgium),nl_BE. -
PORTUGUESE_BRAZIL
Portuguese (Brazil),pt_BR. -
SLOVENIAN_SLOVENIA
Slovenian (Slovenia),sl_SI. -
SWEDISH_SWEDEN
Swedish (Sweden),sv_SE. -
THAI_THAILAND
Thai (Thailand),th_TH. -
CHINESE_CHINA
Chinese (China),zh_CN. -
CHINESE_HONG_KONG
Chinese (Hong Kong),zh_HK. -
CHINESE_MACAO
Chinese (Macao),zh_MO. -
CHINESE_SINGAPORE
Chinese (Singapore),zh_SG. -
CHINESE_TAIWAN
Chinese (Taiwan),zh_TW.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getCode
Returns the language or country code represented by this instance. Will benullforENGLISH.- Returns:
- code
-
getClientSideRepresentation
Description copied from interface:ClientSideReferenceReturns the client side representation of this instance.- Specified by:
getClientSideRepresentationin interfaceClientSideReference- Returns:
- client side representation
-
fromCode
Returns the Language enum member corresponding to the given code.- Parameters:
code- The language or country code string (e.g., "de", "fr_FR").- Returns:
- The Language enum member.
- Throws:
IllegalArgumentException- If the code is not found.
-