|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.inet.jortho.FileUserDictionary
public class FileUserDictionary
This is a reference implementation of the interface UserDictionaryProvider
.
It save the user dictionaries on the local disk as text files.
Constructor Summary | |
---|---|
FileUserDictionary()
Create a FileUserDictionary with the dictionaries in the root of the current application. |
|
FileUserDictionary(java.lang.String fileBase)
Create a FileUserDictionary with the dictionaries on a specific location. |
Method Summary | |
---|---|
void |
addWord(java.lang.String word)
Adds a new word to the current user dictionary. |
java.util.Iterator<java.lang.String> |
getWords(java.util.Locale locale)
Gets the list of custom words for this locale. |
void |
setUserWords(java.lang.String wordList)
Set a completely new word list |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileUserDictionary()
public FileUserDictionary(java.lang.String fileBase)
fileBase
- the baseMethod Detail |
---|
public void addWord(java.lang.String word)
addWord
in interface UserDictionaryProvider
word
- the new word.public java.util.Iterator<java.lang.String> getWords(java.util.Locale locale)
getWords
in interface CustomDictionaryProvider
locale
- The locale of the selected language.
public void setUserWords(java.lang.String wordList)
setUserWords
in interface UserDictionaryProvider
wordList
- the new word list. Can be empty but not null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |