Package org.vaadin.hugerte
Enum Class Language
- All Implemented Interfaces:
Serializable,Comparable<Language>,Constable
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 ConstantDescriptionDefault language. -
Method Summary
Modifier and TypeMethodDescriptionstatic LanguageReturns the Language enum member corresponding to the given code.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
-
AZERBAIJANI
-
BELARUSIAN
-
CATALAN
-
CZECH
-
WELSH
-
DANISH
-
GERMAN
-
GREEK
-
ESPERANTO
-
SPANISH
-
ESTONIAN
-
BASQUE
-
PERSIAN
-
FINNISH
-
IRISH
-
GALICIAN
-
CROATIAN
-
HUNGARIAN
-
ARMENIAN
-
INDONESIAN
-
ITALIAN
-
JAPANESE
-
KABYLE
-
KAZAKH
-
KURDISH
-
LITHUANIAN
-
LATVIAN
-
NEPALI
-
DUTCH
-
OCCITAN
-
POLISH
-
PORTUGUESE
-
ROMANIAN
-
RUSSIAN
-
SLOVAK
-
ALBANIAN
-
SERBIAN
-
TAJIK
-
TURKISH
-
UIGHUR
-
UKRAINIAN
-
UZBEK
-
VIETNAMESE
-
TAMIL
-
ARABIC_SAUDI_ARABIA
-
BULGARIAN_BULGARIA
-
BENGALI_BANGLADESH
-
SPANISH_MEXICO
-
FRENCH_FRANCE
-
HEBREW_ISRAEL
-
ICELANDIC_ICELAND
-
GEORGIAN_GEORGIA
-
KOREAN_KOREA
-
NORWEGIAN_NORWAY
-
DUTCH_BELGIUM
-
PORTUGUESE_BRAZIL
-
SLOVENIAN_SLOVENIA
-
SWEDISH_SWEDEN
-
THAI_THAILAND
-
CHINESE_CHINA
-
CHINESE_HONG_KONG
-
CHINESE_MACAO
-
CHINESE_SINGAPORE
-
CHINESE_TAIWAN
-
-
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
-
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.
-