Class BeforeLeaveEvent.ContinueNavigationAction

java.lang.Object
com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction
All Implemented Interfaces:
Serializable
Enclosing class:
BeforeLeaveEvent

public class BeforeLeaveEvent.ContinueNavigationAction extends Object implements Serializable
The action to resume a postponed BeforeEnterEvent.
Since:
1.0.
Author:
Vaadin Ltd
See Also:
  • Method Details

    • setReferences

      public void setReferences(NavigationHandler handler, NavigationEvent event)
      Sets the navigation handler and the navigation event for this action.
      Parameters:
      handler - the navigation handler
      event - the navigation event
    • proceed

      public void proceed()
      Resumes the page transition associated with the postponed event.
    • cancel

      public void cancel()
      Cancel the navigation that was postponed.

      This is so that the client router pending promise closes. Also updates the correct url on back navigation if blocking back.