Package io.jmix.flowui.view
Class NavigateCloseAction
java.lang.Object
io.jmix.flowui.view.StandardCloseAction
io.jmix.flowui.view.NavigateCloseAction
- All Implemented Interfaces:
ChangeTrackerCloseAction,CloseAction
A specialized close action that represents navigation away from a view, potentially checking for unsaved changes
and handling events related to leaving the current view.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.vaadin.flow.router.BeforeLeaveEventstatic final StringFields inherited from class io.jmix.flowui.view.StandardCloseAction
actionId, checkForUnsavedChanges -
Constructor Summary
ConstructorsConstructorDescriptionNavigateCloseAction(com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent) NavigateCloseAction(String actionId, com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent) NavigateCloseAction(String actionId, com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent, boolean checkForUnsavedChanges) -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.router.BeforeLeaveEventReturns theBeforeLeaveEventassociated with this action.Methods inherited from class io.jmix.flowui.view.StandardCloseAction
getActionId, isCheckForUnsavedChanges, toString
-
Field Details
-
ID
- See Also:
-
beforeLeaveEvent
protected final com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent
-
-
Constructor Details
-
NavigateCloseAction
public NavigateCloseAction(com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent) -
NavigateCloseAction
public NavigateCloseAction(String actionId, com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent) -
NavigateCloseAction
public NavigateCloseAction(String actionId, com.vaadin.flow.router.BeforeLeaveEvent beforeLeaveEvent, boolean checkForUnsavedChanges)
-
-
Method Details
-
getBeforeLeaveEvent
public com.vaadin.flow.router.BeforeLeaveEvent getBeforeLeaveEvent()Returns theBeforeLeaveEventassociated with this action.- Returns:
- the
BeforeLeaveEventinstance tied to this action, which contains information about the navigation event and allows handling or vetoing the leave action
-