Package com.vaadin.browserless.internal
Class MockPage
java.lang.Object
com.vaadin.flow.component.page.Page
com.vaadin.browserless.internal.MockPage
- All Implemented Interfaces:
Serializable
public final class MockPage
extends com.vaadin.flow.component.page.Page
A
Page which records the external navigations and recreates the UI on
reload(), to simulate the browser's F5.
For internal use only. May be renamed or removed in a future release.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.page.Page
com.vaadin.flow.component.page.Page.ExtendedClientDetailsReceiver, com.vaadin.flow.component.page.Page.NavigationJs, com.vaadin.flow.component.page.Page.PageJs -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExternalNavigationURL(String windowName) Returns the URL last opened in the given window.Returns the URL the page last navigated to in its own window.Returns the URLs opened in windows other than the page's own, by window name.voidvoidreload()Methods inherited from class com.vaadin.flow.component.page.Page
addBrowserWindowResizeListener, addDynamicImport, addDynamicImport, addJavaScript, addJavaScript, addJavaScript, addJsModule, addStyleSheet, addStyleSheet, addStyleSheet, executeJs, executeJs, executeJs, fetchCurrentURL, fetchPageDirection, getColorScheme, getExtendedClientDetails, getHistory, open, openUnsafe, openUnsafe, pageVisibilitySignal, retrieveExtendedClientDetails, setColorScheme, setLocation, setLocation, setTitle, windowSizeSignal
-
Constructor Details
-
MockPage
public MockPage(com.vaadin.flow.component.UI ui, UIFactory uiFactory, com.vaadin.flow.server.VaadinSession session) Creates the page of the given UI.- Parameters:
ui- the UI the page belongs touiFactory- creates the UI that replaces this one on a reloadsession- the session of the UI
-
-
Method Details
-
getOpenedWindows
Returns the URLs opened in windows other than the page's own, by window name.- Returns:
- the opened URLs, by window name
-
open
- Overrides:
openin classcom.vaadin.flow.component.page.Page
-
reload
public void reload()- Overrides:
reloadin classcom.vaadin.flow.component.page.Page