Package com.teamdev.jxbrowser.spellcheck
Class Language
java.lang.Object
com.teamdev.jxbrowser.spellcheck.Language
A language for which Chromium can perform spell checking.
This class contains a pre-defined set of languages supported by Chromium, and also allows you to create a new one from the language abbreviation pair.
- Since:
- 7.27
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Languagestatic final Language -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the language code.booleaninthashCode()static LanguageReturns aLanguagewith the givencode.static LanguageCreates a newLanguagewith the givencodeandregion.region()Returns anOptionalthat contains a string that represents the region or an emptyOptionalif the region is not specified.toString()Returns a string representation of theLanguage.
-
Field Details
-
BULGARIAN
-
CATALAN
-
CZECH
-
DANISH
-
DUTCH
-
GERMAN
-
GREEK
-
ENGLISH_US
-
ENGLISH_UK
-
SPANISH_SPAIN
-
ESTONIAN
-
PERSIAN
-
FRENCH
-
HEBREW
-
HINDI
-
CROATIAN
-
HUNGARIAN
-
INDONESIAN
-
ITALIAN
-
KOREAN
-
LITHUANIAN
-
LATVIAN
-
NORWEGIAN
-
POLISH
-
PORTUGUESE_BRAZIL
-
PORTUGUESE_PORTUGAL
-
ROMANIAN
-
RUSSIAN
-
SLOVAK
-
SLOVENIAN
-
SERBIAN
-
SWEDISH
-
TURKISH
-
UKRAINIAN
-
VIETNAMESE
-
-
Method Details
-
of
Creates a newLanguagewith the givencodeandregion.This method does not check that the constructed
Languageis a valid language that can be used for spell checking.- Parameters:
code- the language coderegion- the region- Returns:
- a
Languagewith the givencodeandregion. - Throws:
IllegalArgumentException- when the givencodeorregionis empty or blank
-
of
Returns aLanguagewith the givencode.- Parameters:
code- the language code- Returns:
- a
Languagewith the givencode
-
code
Returns the language code. -
region
Returns anOptionalthat contains a string that represents the region or an emptyOptionalif the region is not specified. -
toString
Returns a string representation of theLanguage.This method returns a string equal to the value of
<code>-<region> -
equals
-
hashCode
public int hashCode()
-