public interface SpellChecker extends EngineService
Modifier and Type | Method and Description |
---|---|
Dictionary |
customDictionary()
Returns the custom dictionary.
|
java.util.List<java.lang.String> |
dictionaryNames()
Returns an immutable list of the dictionary names used for spell checking.
|
void |
dictionaryNames(java.lang.String... dictionaryNames)
Updates the dictionary names used for spell checking.
|
void |
disable()
Disables spell checking on the web pages loaded in the browser instances of the engine.
|
void |
enable()
Enables spell checking on the web pages loaded in the browser instances of the engine.
|
boolean |
isEnabled()
Indicates whether spell checking is enabled or not.
|
boolean isEnabled()
java.lang.IllegalStateException
- when the engine is closed and its spell check service isn't
available anymorevoid enable()
void disable()
java.lang.IllegalStateException
- when the engine is closed and its spell check service isn't
available anymorejava.util.List<java.lang.String> dictionaryNames()
java.lang.IllegalStateException
- when the engine is closed and its spell check service isn't
available anymorevoid dictionaryNames(java.lang.String... dictionaryNames)
Important: on macOS this method updates the dictionary names, but these dictionaries will not be downloaded and used for spell checking. On macOS the platform spell checker is used instead. This platform spell checker automatically detects the language of the text.
dictionaryNames
- the list of strings that represent the dictionary names. For example,
"en-us", "ru", etc.java.lang.IllegalArgumentException
- when one or more elements of the dictionaryNames
are
empty or blankjava.lang.IllegalStateException
- when the engine is closed and its spell check service isn't
available anymoreDictionary customDictionary()