Package com.vaadin.flow.router
Class BeforeLeaveEvent.ContinueNavigationAction
java.lang.Object
com.vaadin.flow.router.BeforeLeaveEvent.ContinueNavigationAction
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BeforeLeaveEvent
The action to resume a postponed
BeforeEnterEvent.- Since:
- 1.0.
- Author:
- Vaadin Ltd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidcancel()Cancel the navigation that was postponed.voidproceed()Resumes the page transition associated with the postponed event.voidsetReferences(NavigationHandler handler, NavigationEvent event) Sets the navigationhandlerand the navigationeventfor this action.
-
Method Details
-
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.