public class ViewBeforeLeaveEvent extends EventObject
Provides a navigate() method which must be called for the navigation
to take place.
source| Constructor and Description |
|---|
ViewBeforeLeaveEvent(Navigator navigator,
ViewLeaveAction action)
Creates a new event instance for the given navigator.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isNavigateRun()
Checks if the navigate command has been executed.
|
void |
navigate()
Performs the navigation which triggered the event in the first place.
|
getSource, toStringpublic ViewBeforeLeaveEvent(Navigator navigator, ViewLeaveAction action)
navigator - the navigator instanceaction - the command to execute when calling navigate()public void navigate()
protected boolean isNavigateRun()
true if navigate() has been called,
false otherwiseCopyright © 2022 Vaadin Ltd. All rights reserved.