com.vaadin.flow.i18n.

Class 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:

    Serialized Form

    • Constructor Detail

      • 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 Detail

      • 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