public interface SpellDictionary
| Modifier and Type | Method and Description |
|---|---|
void |
addProgressListener(ProgressListener listener)
Add a listener to monitor dictionary load.
|
void |
addWord(String word)
Add a word permanently to the dictionary.
|
Locale |
getLocale()
The locale for what this dictionary is for.
|
List<String> |
getSuggestions(String word)
Returns a list of String that are the suggestions to any word.
|
List<String> |
getSuggestions(String word,
int nMax)
Returns a list of String that are the suggestions to any word.
|
boolean |
isCorrect(String word)
Returns true if the word is correctly spelled against the dictionary.
|
boolean |
isLoad() |
void |
load() |
void |
removeProgressListener(ProgressListener listener)
Remove a listener to monitor dictionary load
|
void addWord(String word) throws SpellDictionaryException
word - a word to add.SpellDictionaryExceptionboolean isCorrect(String word)
word - a word to check.List<String> getSuggestions(String word)
word - the word that we want to get a list of spelling suggestions for.List<String> getSuggestions(String word, int nMax)
word - the word that we want to get a list of spelling suggestions for.nMax - the maximun number of word to returnLocale getLocale()
boolean isLoad()
void load() throws IOException
IOExceptionvoid addProgressListener(ProgressListener listener)
listener - the listener to addvoid removeProgressListener(ProgressListener listener)
listener - Copyright © 2020. All rights reserved.