public class DefaultLocaleManager extends java.lang.Object implements LocaleManager
ENGLISH, SPANISH
Constructor and Description |
---|
DefaultLocaleManager() |
Modifier and Type | Method and Description |
---|---|
java.util.Locale |
getCurrentLocale() |
java.util.Set<java.util.Locale> |
getDefaultLocales() |
java.util.Locale |
getDefaultSystemLocale() |
java.util.Set<java.util.Locale> |
getInstalledLocales() |
java.lang.String |
getLanguageDisplayName(java.util.Locale locale) |
java.util.Locale[] |
getLocaleAlternatives(java.util.Locale locale) |
java.lang.String |
getLocaleDisplayName(java.util.Locale locale) |
java.util.Locale |
getNearestLocale(java.util.Locale locale) |
java.io.File |
getResourcesFolder() |
boolean |
installLocale(java.util.Locale locale) |
boolean |
installLocales(java.net.URL localesFile) |
void |
setCurrentLocale(java.util.Locale locale) |
boolean |
uninstallLocale(java.util.Locale locale) |
void |
updateInstalledLocales() |
public java.util.Locale getCurrentLocale()
getCurrentLocale
in interface LocaleManager
public void setCurrentLocale(java.util.Locale locale)
setCurrentLocale
in interface LocaleManager
public java.util.Locale getDefaultSystemLocale()
getDefaultSystemLocale
in interface LocaleManager
public java.util.Set<java.util.Locale> getDefaultLocales()
getDefaultLocales
in interface LocaleManager
public boolean installLocales(java.net.URL localesFile)
installLocales
in interface LocaleManager
public java.util.Set<java.util.Locale> getInstalledLocales()
getInstalledLocales
in interface LocaleManager
public void updateInstalledLocales()
updateInstalledLocales
in interface LocaleManager
public boolean installLocale(java.util.Locale locale)
installLocale
in interface LocaleManager
public boolean uninstallLocale(java.util.Locale locale)
uninstallLocale
in interface LocaleManager
public java.lang.String getLanguageDisplayName(java.util.Locale locale)
getLanguageDisplayName
in interface LocaleManager
public java.lang.String getLocaleDisplayName(java.util.Locale locale)
getLocaleDisplayName
in interface LocaleManager
public java.util.Locale[] getLocaleAlternatives(java.util.Locale locale)
getLocaleAlternatives
in interface LocaleManager
public java.io.File getResourcesFolder()
getResourcesFolder
in interface LocaleManager
public java.util.Locale getNearestLocale(java.util.Locale locale)
getNearestLocale
in interface LocaleManager