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
Modifier and TypeFieldDescriptionstatic final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
static final Language
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Returns the language code.boolean
int
hashCode()
static Language
Returns aLanguage
with the givencode
.static Language
Creates a newLanguage
with the givencode
andregion
.region()
Returns anOptional
that contains a string that represents the region or an emptyOptional
if 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 newLanguage
with the givencode
andregion
.This method does not check that the constructed
Language
is a valid language that can be used for spell checking.- Parameters:
code
- the language coderegion
- the region- Returns:
- a
Language
with the givencode
andregion
. - Throws:
IllegalArgumentException
- when the givencode
orregion
is empty or blank
-
of
Returns aLanguage
with the givencode
.- Parameters:
code
- the language code- Returns:
- a
Language
with the givencode
-
code
Returns the language code. -
region
Returns anOptional
that contains a string that represents the region or an emptyOptional
if 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()
-