public interface LocaleProvider extends Serializable
AbstractItemModel.| Modifier and Type | Method and Description |
|---|---|
Locale |
getCurrentDataLocale()
Returns current (session) data locale to be used to read or store localized attribute data.
|
List<Locale> |
getFallbacks(Locale requestedLocale)
|
boolean |
isFallbackEnabled()
Returns
true if for the current session the Locale fallback is enabled. |
Locale |
toDataLocale(Locale external)
Converts a arbitrary locale instance into one which is allowed to read and write data with.
|
Locale getCurrentDataLocale()
I18NService.getCurrentLocale()!Locale toDataLocale(Locale external)
external - the localeIllegalArgumentException - if no supported data locale could be foundboolean isFallbackEnabled()
true if for the current session the Locale fallback is enabled.false otherwise.List<Locale> getFallbacks(Locale requestedLocale)
requestedLocale - the Locale for which all fallback Locales are requested.null if the locale fallback is not enabled (see isFallbackEnabled()).Copyright © 2017 SAP SE. All Rights Reserved.