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 TypeMethodDescriptionvoid
cancel()
Cancel the navigation that was postponed.void
proceed()
Resumes the page transition associated with the postponed event.void
setReferences
(NavigationHandler handler, NavigationEvent event) Sets the navigationhandler
and the navigationevent
for 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.