public interface LocaleContext extends UiComponentContext
Modifier and Type | Method and Description |
---|---|
ContextProperty<List<Locale>> |
availableLocales() |
ContextProperty<Locale> |
current() |
ContextProperty<Locale> |
defaultLocale() |
default Stream<Locale> |
getAvailableLocales() |
default Locale |
getCurrent() |
default Locale |
getDefault() |
default boolean |
isPopulated() |
static LocaleContext |
of(Locale locale)
Creates a context bound to a single locale.
|
default <T> void |
populateFromI18NAuthoringSupport(T item,
I18NAuthoringSupport<T> i18NAuthoringSupport) |
default void |
restrictTo(Locale locale) |
ContextProperty<Locale> current()
ContextProperty<List<Locale>> availableLocales()
ContextProperty<Locale> defaultLocale()
default Locale getCurrent()
default Locale getDefault()
default boolean isPopulated()
default <T> void populateFromI18NAuthoringSupport(T item, I18NAuthoringSupport<T> i18NAuthoringSupport)
default void restrictTo(Locale locale)
static LocaleContext of(Locale locale)
Copyright © 2021 Magnolia International Ltd.. All rights reserved.