com.vaadin.flow.component.

Class UI.BrowserRefreshEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<UI>
com.vaadin.flow.component.UI.BrowserRefreshEvent

All Implemented Interfaces:

Serializable

Enclosing class:

UI

@DomEvent("ui-refresh") public static class UI.BrowserRefreshEvent extends ComponentEvent<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 Details

  • 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