Package com.teamdev.jxbrowser.engine
Enum Class Language
- All Implemented Interfaces:
Serializable,Comparable<Language>,Constable
A list of supported user interface languages.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns anOptionalthat contains theLanguagefor the givenlanguageandcountrycodes or an emptyOptionalif there is noLanguageassociated with the specifiedlanguageandcountrycodes.Returns anOptionalthat contains theLanguagefor the givenLocaleor an emptyOptionalif there is noLanguageassociated with the language obtained from the givenLocale.toString()Returns a string representation of the current language in format: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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
AMHARIC
-
ARABIC
-
BULGARIAN
-
BENGALI
-
CATALAN
-
CZECH
-
DANISH
-
GERMAN
-
GREEK
-
ENGLISH_US
-
ENGLISH_UK
-
SPANISH_LATIN_AMERICA
-
SPANISH_SPAIN
-
ESTONIAN
-
PERSIAN
-
FINNISH
-
FILIPINO
-
FRENCH
-
GUJARATI
-
HEBREW
-
HINDI
-
CROATIAN
-
HUNGARIAN
-
INDONESIAN
-
ITALIAN
-
JAPANESE
-
KANNADA
-
KOREAN
-
LITHUANIAN
-
LATVIAN
-
MALAYALAM
-
MARATHI
-
MALAY
-
NORWEGIAN
-
DUTCH
-
POLISH
-
PORTUGUESE_BRAZIL
-
PORTUGUESE_PORTUGAL
-
ROMANIAN
-
RUSSIAN
-
SLOVAK
-
SLOVENIAN
-
SERBIAN
-
SWEDISH
-
SWAHILI
-
TAMIL
-
TELUGU
-
THAI
-
TURKISH
-
UKRAINIAN
-
VIETNAMESE
-
CHINESE
-
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
-
of
Returns anOptionalthat contains theLanguagefor the givenLocaleor an emptyOptionalif there is noLanguageassociated with the language obtained from the givenLocale. -
of
Returns anOptionalthat contains theLanguagefor the givenlanguageandcountrycodes or an emptyOptionalif there is noLanguageassociated with the specifiedlanguageandcountrycodes.Use instead of
of(Locale)if there is a need to pass the new language codes instead of the old ones, becauseLocaleinternally converts the new language code passed to the constructor to the old one. There is a chance not to find a language for an old code, so if you want to be sure that the passed locale will not be converted, use this method with the required language and country codes.A set of the new language codes that will be converted to the old ones in the
Localeare specified inLocale(String).- Parameters:
language- language codecountry- country code- Returns:
- an
OptionalofLanguagefor the given parameters orOptional.empty()if there is noLanguageassociated with the given parameters - Since:
- 7.1
- See Also:
-
toString
Returns a string representation of the current language in format:
where<language code>SEPARATOR<country code>SEPARATORis a platform dependent symbol (either "_" or "-").
-