Package com.vaadin.flow.server
Class BrowserTabInitEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.server.BrowserTabInitEvent
- All Implemented Interfaces:
Serializable
Event fired to
BrowserTabInitListener when a new BrowserTab
has been created.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionBrowserTabInitEvent(BrowserTab browserTab, UI ui, VaadinService service) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionGets the created browser tab.getUI()Gets the UI that the browser tab was created for.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
BrowserTabInitEvent
Creates a new event.- Parameters:
browserTab- the created browser tab, notnullui- the UI that the browser tab was created for, notnullservice- the service from which the event originates, notnull
-
-
Method Details
-
getSource
- Overrides:
getSourcein classEventObject
-
getBrowserTab
Gets the created browser tab.- Returns:
- the created browser tab, not
null
-
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
-