We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.
Package com.vaadin.flow.component
Class UI.BrowserRefreshEvent
All Implemented Interfaces:
Enclosing class:
Event fired by the client to request a refresh of the user interface, by re-navigating to the current route.
The route target component is re-instantiated, as well as all layouts in the route chain if the
fullRefresh
event flag is active.
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionBrowserRefreshEvent
(UI source, boolean fromClient, boolean refreshRouteChain) Creates a new event instance.
-
Method Summary
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
Methods inherited from class java.util.EventObject
toString
-
Field Details
-
EVENT_NAME
See Also:
-
-
Constructor Details
-
BrowserRefreshEvent
public BrowserRefreshEvent(UI source, boolean fromClient, @EventData("fullRefresh") boolean refreshRouteChain) Creates a new event instance.
Parameters:
source
- the UI for which the refresh is requested.fromClient
-true
if the event originated from the client side,false
otherwise. NOTE: for technical reason the argument must be added to the constructor, but this event the value is always true.refreshRouteChain
-true
to refresh all layouts in the route chain,false
to only refresh the route instance
-