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.
- See Also:
-
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, unregisterListenerMethods 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-trueif the event originated from the client side,falseotherwise. NOTE: for technical reason the argument must be added to the constructor, but this event the value is always true.refreshRouteChain-trueto refresh all layouts in the route chain,falseto only refresh the route instance
-