1
|
package eu.etaxonomy.vaadin.ui.view;
|
2
|
|
3
|
/**
|
4
|
* Event indicating the end of a popup view which is send via the uiEventBus to the NavigationManagerBean.
|
5
|
* +
|
6
|
* @author a.kohlbecker
|
7
|
* @since Feb 1, 2018
|
8
|
*
|
9
|
*/
|
10
|
public class DoneWithPopupEvent {
|
11
|
|
12
|
|
13
|
public enum Reason {
|
14
|
CANCEL, SAVE, DELETE;
|
15
|
}
|
16
|
|
17
|
private final Reason reason;
|
18
|
private final PopupView popup;
|
19
|
|
20
|
public DoneWithPopupEvent(PopupView popup, Reason reason) {
|
21
|
this.popup = popup;
|
22
|
this.reason = reason;
|
23
|
}
|
24
|
|
25
|
|
26
|
public Reason getReason() {
|
27
|
return reason;
|
28
|
}
|
29
|
|
30
|
public PopupView getPopup() {
|
31
|
return popup;
|
32
|
}
|
33
|
}
|