Enum Class Language

java.lang.Object
java.lang.Enum<Language>
com.teamdev.jxbrowser.engine.Language
All Implemented Interfaces:
Serializable, Comparable<Language>, Constable

public enum Language extends Enum<Language>
A list of supported user interface languages.
  • Enum Constant Details

    • AMHARIC

      public static final Language AMHARIC
    • ARABIC

      public static final Language ARABIC
    • BULGARIAN

      public static final Language BULGARIAN
    • BENGALI

      public static final Language BENGALI
    • CATALAN

      public static final Language CATALAN
    • CZECH

      public static final Language CZECH
    • DANISH

      public static final Language DANISH
    • GERMAN

      public static final Language GERMAN
    • GREEK

      public static final Language GREEK
    • ENGLISH_US

      public static final Language ENGLISH_US
    • ENGLISH_UK

      public static final Language ENGLISH_UK
    • SPANISH_LATIN_AMERICA

      public static final Language SPANISH_LATIN_AMERICA
    • SPANISH_SPAIN

      public static final Language SPANISH_SPAIN
    • ESTONIAN

      public static final Language ESTONIAN
    • PERSIAN

      public static final Language PERSIAN
    • FINNISH

      public static final Language FINNISH
    • FILIPINO

      public static final Language FILIPINO
    • FRENCH

      public static final Language FRENCH
    • GUJARATI

      public static final Language GUJARATI
    • HEBREW

      public static final Language HEBREW
    • HINDI

      public static final Language HINDI
    • CROATIAN

      public static final Language CROATIAN
    • HUNGARIAN

      public static final Language HUNGARIAN
    • INDONESIAN

      public static final Language INDONESIAN
    • ITALIAN

      public static final Language ITALIAN
    • JAPANESE

      public static final Language JAPANESE
    • KANNADA

      public static final Language KANNADA
    • KOREAN

      public static final Language KOREAN
    • LITHUANIAN

      public static final Language LITHUANIAN
    • LATVIAN

      public static final Language LATVIAN
    • MALAYALAM

      public static final Language MALAYALAM
    • MARATHI

      public static final Language MARATHI
    • MALAY

      public static final Language MALAY
    • NORWEGIAN

      public static final Language NORWEGIAN
    • DUTCH

      public static final Language DUTCH
    • POLISH

      public static final Language POLISH
    • PORTUGUESE_BRAZIL

      public static final Language PORTUGUESE_BRAZIL
    • PORTUGUESE_PORTUGAL

      public static final Language PORTUGUESE_PORTUGAL
    • ROMANIAN

      public static final Language ROMANIAN
    • RUSSIAN

      public static final Language RUSSIAN
    • SLOVAK

      public static final Language SLOVAK
    • SLOVENIAN

      public static final Language SLOVENIAN
    • SERBIAN

      public static final Language SERBIAN
    • SWEDISH

      public static final Language SWEDISH
    • SWAHILI

      public static final Language SWAHILI
    • TAMIL

      public static final Language TAMIL
    • TELUGU

      public static final Language TELUGU
    • THAI

      public static final Language THAI
    • TURKISH

      public static final Language TURKISH
    • UKRAINIAN

      public static final Language UKRAINIAN
    • VIETNAMESE

      public static final Language VIETNAMESE
    • CHINESE

      public static final Language CHINESE
    • CHINESE_TAIWAN

      public static final Language CHINESE_TAIWAN
  • Method Details

    • values

      public static Language[] 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

      public static Language valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • of

      public static Optional<Language> of(Locale locale)
      Returns an Optional that contains the Language for the given Locale or an empty Optional if there is no Language associated with the language obtained from the given Locale.
    • of

      public static Optional<Language> of(String language, String country)
      Returns an Optional that contains the Language for the given language and country codes or an empty Optional if there is no Language associated with the specified language and country codes.

      Use instead of of(Locale) if there is a need to pass the new language codes instead of the old ones, because Locale internally 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 Locale are specified in Locale(String).

      Parameters:
      language - language code
      country - country code
      Returns:
      an Optional of Language for the given parameters or Optional.empty() if there is no Language associated with the given parameters
      Since:
      7.1
      See Also:
    • toString

      public String toString()
      Returns a string representation of the current language in format:
       <language code>SEPARATOR<country code>
       
      where SEPARATOR is a platform dependent symbol (either "_" or "-").
      Overrides:
      toString in class Enum<Language>
      Returns:
      a string representation of the current language