Class LocaleManager
java.lang.Object
hu.rts.mike.example.dev.crm.session.LocaleManager
- All Implemented Interfaces:
com.vaadin.flow.server.VaadinServiceInitListener,Serializable,EventListener
@SpringComponent
public class LocaleManager
extends Object
implements com.vaadin.flow.server.VaadinServiceInitListener
Class allowing us to customize the startup process whenever the Application starts and/or
whenever a users navigates to the app.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.vaadin.flow.i18n.I18NProviderprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Localeprivate voidinitLocale(com.vaadin.flow.component.UI ui) static voidlocaleChange(com.vaadin.flow.i18n.LocaleChangeEvent event) voidserviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent)
-
Field Details
-
LOCALE_COOKIE_NAME
- See Also:
-
i18nProvider
@Autowired private com.vaadin.flow.i18n.I18NProvider i18nProvider
-
-
Constructor Details
-
LocaleManager
public LocaleManager()
-
-
Method Details
-
serviceInit
public void serviceInit(com.vaadin.flow.server.ServiceInitEvent serviceInitEvent) - Specified by:
serviceInitin interfacecom.vaadin.flow.server.VaadinServiceInitListener
-
initLocale
private void initLocale(com.vaadin.flow.component.UI ui) -
localeChange
public static void localeChange(com.vaadin.flow.i18n.LocaleChangeEvent event) -
getLocale
-