com.vaadin.flow.i18n.

Class LocaleChangeEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.i18n.LocaleChangeEvent

All Implemented Interfaces:

Serializable

public class LocaleChangeEvent extends EventObject

Event object with data related to locale change.

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • LocaleChangeEvent

      public LocaleChangeEvent(UI ui, Locale locale)

      Locale change event constructor.

      Parameters:

      ui - The ui on which the Event initially occurred.

      locale - new locale that was set

  • Method Details

    • getLocale

      public Locale getLocale()

      Get the new locale that was set.

      Returns:

      set locale

    • getUI

      public UI getUI()

      Returns the UI where the locale changed in.

      Returns:

      the ui