Class BrowserTabInitEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.server.BrowserTabInitEvent
All Implemented Interfaces:
Serializable

@NullMarked public class BrowserTabInitEvent extends EventObject
Event fired to BrowserTabInitListener when a new BrowserTab has been created.
See Also:
  • Constructor Details

    • BrowserTabInitEvent

      public BrowserTabInitEvent(BrowserTab browserTab, UI ui, VaadinService service)
      Creates a new event.
      Parameters:
      browserTab - the created browser tab, not null
      ui - the UI that the browser tab was created for, not null
      service - the service from which the event originates, not null
  • Method Details

    • getSource

      public VaadinService getSource()
      Overrides:
      getSource in class EventObject
    • getBrowserTab

      public BrowserTab getBrowserTab()
      Gets the created browser tab.
      Returns:
      the created browser tab, not null
    • getUI

      public UI getUI()
      Gets the UI that the browser tab was created for. This is the first UI loaded in the browser tab that used it.
      Returns:
      the UI of the browser tab, not null