Package io.jmix.ui.screen
Class Screen.AfterCloseEvent
java.lang.Object
java.util.EventObject
io.jmix.ui.screen.Screen.AfterCloseEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Screen
Event sent after the screen is closed by its
Screen.close(CloseAction)
method and after Screen.AfterDetachEvent
.
In this event listener, you can show notifications or dialogs after closing the screen, for example:
@Subscribe protected void onAfterClose(AfterCloseEvent event) { notifications.create().withCaption("Just closed").show(); }
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
closedWith
(StandardOutcome outcome) Checks that screen was closed with the givenoutcome
.Methods inherited from class java.util.EventObject
toString
-
Field Details
-
closeAction
-
-
Constructor Details
-
AfterCloseEvent
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getCloseAction
- Returns:
- action passed to the
Screen.close(CloseAction)
method of the screen.
-
closedWith
Checks that screen was closed with the givenoutcome
.
-