Package com.vaadin.flow.component
Class UI.BrowserRefreshEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- UI
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
-