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 Details

    • 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:
      serviceInit in interface com.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

      public static Locale getLocale()