Interface BrowserTabInitListener

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BrowserTabInitListener extends Serializable
Event listener that can be registered for receiving an event when a new BrowserTab has been created.

A browser tab is created when the first UI is loaded in a browser tab, before any route target or layout of that UI is created and before the UIInitListeners are notified. Reloading the page or navigating within the same browser tab does not create a new browser tab, which makes this the place for initializing the state of a browser tab and registering its cleanup with BrowserTab.addDestroyListener(com.vaadin.flow.function.SerializableConsumer<com.vaadin.flow.server.BrowserTab>).

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Notifies when a browser tab has been created.
  • Method Details

    • browserTabInit

      void browserTabInit(BrowserTabInitEvent event)
      Notifies when a browser tab has been created.
      Parameters:
      event - event for the initialization