|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectechopointng.richtext.AbstractRichTextSpellChecker
com.sptci.epng.SpellChecker
public class SpellChecker
The spell checker used by RichTextArea. Acts as a decorator
around a SpellChecker from the jazzy library.
Copyright 2006 Sans Pareil Technologies, Inc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface echopointng.richtext.RichTextSpellChecker |
|---|
RichTextSpellChecker.SpellCheckerWord |
| Method Summary | |
|---|---|
String[] |
checkWord(String word)
Check the specified word and return null or an array of
alternative words. |
static SpellChecker |
getInstance(Locale[] locales,
String directory)
Return the instance for the specified locales. |
void |
spellingError(com.swabunga.spell.event.SpellCheckEvent event)
Implementation of the SpellCheckListner interface. |
| Methods inherited from class echopointng.richtext.AbstractRichTextSpellChecker |
|---|
parseWords |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static SpellChecker getInstance(Locale[] locales,
String directory)
throws IOException
locales - The locales specified by the client.directory - The directory in which the dictionary files are stored.
IOException - If errors are encountered while attempting to
read the dictionary files.loadDictionary(java.util.Locale, java.lang.String)public String[] checkWord(String word)
null or an array of
alternative words.
checkWord in interface RichTextSpellCheckerRichTextSpellChecker, this method
returns null if the word is spelt properly, or an
array of words that are alternatives (empty if no alternatives are
known).public void spellingError(com.swabunga.spell.event.SpellCheckEvent event)
SpellCheckListner interface.
Populates the suggestions with the suggestions available
in the event.
spellingError in interface com.swabunga.spell.event.SpellCheckListenerevent - The spell check event.
|
SPT Core API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||