public interface DictionaryProvider
| Modifier and Type | Method and Description |
|---|---|
List<Locale> |
getAvailableLocales()
This function get a list for all locales on internet, ready for installation
|
SpellDictionary |
getDictionary(Locale locale)
Get a new dictionary for the
locale. |
String |
getDisplayName()
A name for the UI.
|
List<Locale> |
getInstalledLocales() |
void |
install(File file,
ProgressListener listener)
Install a local copy form the dictionary
|
void |
install(Locale locale,
ProgressListener listener)
Install a local copy of the interntet dictionary for that locale
|
boolean |
isForLocale(Locale locale) |
void |
uninstall(Locale locale,
ProgressListener listener)
Uninstall the given locale
|
String getDisplayName()
boolean isForLocale(Locale locale)
locale - locale to check forList<Locale> getInstalledLocales()
SpellDictionary getDictionary(Locale locale) throws IOException
locale. Dictionary must be installed.locale - the locale of the dictionary.IOExceptionList<Locale> getAvailableLocales()
void install(Locale locale, ProgressListener listener) throws Exception
locale - the local of the dictionary to installlistener - the listener for progress trackingExceptionvoid install(File file, ProgressListener listener) throws Exception
file - the file of the dictionarylistener - the listener for progress trackingExceptionvoid uninstall(Locale locale, ProgressListener listener) throws Exception
locale - the locale to uninstalllistener - the listener for progress trackingExceptionCopyright © 2020. All rights reserved.