|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.gnome.glib.Boxed
org.gnome.gtk.Spell
public final class Spell
Helper class which manages spell checking in TextViews. Convert a TextView
to one that is doing spelling by calling TextView's
attachSpell()
.
Augmenting a TextView to provide spell checking is provided by the GtkSpell library, which in turn leverages Enchant to connect to a spell checking backend.
If GtkSpell doesn't meet your needs, then you may try using the
underlying checking API directly. We have coverage of it starting at
Enchant
.
Method Summary | |
---|---|
void |
recheckAll()
Re-run the spell checker over the entire text. |
void |
setLanguage(String lang)
Change the language that spellings are being checked against. |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void recheckAll()
public void setLanguage(String lang)
The default language selected when you call TextView's
attachSpell()
is based on the
LANG
environment variable, so normally you don't need to
call this.
Otherwise, you can attach with the other
attachSpell()
method, specifying a
language there.
Interestingly, if for some strange reason that environment variable
is not set, the language selection will fall back to English. But as it
is essentially impossible to log into a GNOME system without
LANG
being set, you shouldn't ever encounter this.
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |