@TriggerOnce public static class Screen.AfterCloseEvent extends java.util.EventObject
Screen.close(CloseAction)
method and after Screen.AfterDetachEvent
.
Component settings are saved.
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(); }
Modifier and Type | Field and Description |
---|---|
protected CloseAction |
closeAction |
Constructor and Description |
---|
AfterCloseEvent(Screen source,
CloseAction closeAction) |
Modifier and Type | Method and Description |
---|---|
boolean |
closedWith(StandardOutcome outcome)
Checks that screen was closed with the given
outcome . |
CloseAction |
getCloseAction() |
Screen |
getScreen() |
Screen |
getSource() |
protected final CloseAction closeAction
public AfterCloseEvent(Screen source, CloseAction closeAction)
public Screen getSource()
getSource
in class java.util.EventObject
public Screen getScreen()
public CloseAction getCloseAction()
Screen.close(CloseAction)
method of the screen.public boolean closedWith(StandardOutcome outcome)
outcome
.