public final class SpellCheckerService
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addSpellCheckListener(SpellCheckListener listener)
Adds the specified listener to receive spell check events.
添加指定的侦听器以接收拼写检查事件。 |
java.lang.String |
getLanguage()
Return a string that represents language currently used for checking spelling (e.g.
返回代表当前用于检查拼写的语言的字符串(例如 |
boolean |
isEnabled()
Indicates whether spellchecker service is enabled or disabled.
指示是否启用拼写检查器服务。 |
boolean |
isFullSpellCheckForced()
Indicates whether spell checking of the whole text in the currently focusable text input element on the loaded web page is enabled or disabled.
指示是否启用或禁用对加载的网页上当前可聚焦的文本输入元素中的整个文本进行拼写检查。 |
void |
removeSpellCheckListener(SpellCheckListener listener)
Removes the specified spell check listener so that it no longer receives spell check events.
删除指定的拼写检查侦听器,使其不再接收拼写检查事件。 |
void |
setEnabled(boolean enable)
Enables or disables spellchecker service.
启用或禁用拼写检查器服务。 |
void |
setFullSpellCheckForced(boolean force)
Enables/disables force spell check flag that indicates whether Chromium should spell check the whole text in the currently focusable text input element on the loaded web page, or check only modified paragraph.
启用/禁用强制拼写检查标志,该标志指示Chromium应该拼写检查加载的网页上当前可聚焦的文本输入元素中的整个文本,还是仅检查修改后的段落。 |
void |
setLanguage(java.lang.String language)
Sets spellchecker language used for checking spelling.
设置用于检查拼写的拼写检查器语言。 |
public boolean isEnabled()
true
when spellchecker service is enabled.
启用拼写检查器服务时。
public void setEnabled(boolean enable)
enable
- flag that indicates whether spellchecker service must be enabled or not. Use
true
to enable service.
-指示是否必须启用拼写检查器服务的标志。用于启用服务。
public boolean isFullSpellCheckForced()
true
when spell checking of the whole text is enabled. Returns
false
if Chromium checks only text in the modified paragraph.
启用对整个文本的拼写检查时。如果Chromium仅检查修改后的段落中的文本,则返回。
public void setFullSpellCheckForced(boolean force)
false
, so Chromium checks only modified paragraph.
force
- flag that indicates whether full spell checking is forced or not.
-指示是否强制执行完整拼写检查的标志。
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
language
- a string that represents language identifier. For example, "en-US".
-表示语言标识符的字符串。例如,“ en-US”。
java.lang.IllegalArgumentException
- when
language
is
null
or empty.
public void addSpellCheckListener(SpellCheckListener listener)
listener
- the specified listener to receive spell check events.
-指定的侦听器以接收拼写检查事件。
public void removeSpellCheckListener(SpellCheckListener listener)
listener
- the specified spell check listener.
-指定的拼写检查侦听器。