1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.vaadin.mvp;
|
10
|
|
11
|
import com.vaadin.data.fieldgroup.FieldGroup.CommitEvent;
|
12
|
|
13
|
/**
|
14
|
* Usually a notification to a presenter to
|
15
|
* perform a save operation and to commit the transaction
|
16
|
*
|
17
|
* @author a.kohlbecker
|
18
|
* @since Apr 5, 2017
|
19
|
*
|
20
|
*/
|
21
|
public class EditorSaveEvent {
|
22
|
|
23
|
private CommitEvent commitEvent;
|
24
|
|
25
|
// FIXME this is only a iterim solution for the problem described in https://dev.e-taxonomy.eu/redmine/issues/6562
|
26
|
private AbstractView view;
|
27
|
|
28
|
|
29
|
/**
|
30
|
* @param commitEvent
|
31
|
*/
|
32
|
public EditorSaveEvent(CommitEvent commitEvent, AbstractView view) {
|
33
|
this.commitEvent = commitEvent;
|
34
|
this.view = view;
|
35
|
}
|
36
|
|
37
|
public CommitEvent getCommitEvent(){
|
38
|
return commitEvent;
|
39
|
}
|
40
|
|
41
|
/**
|
42
|
* @return the view
|
43
|
*/
|
44
|
public AbstractView getView() {
|
45
|
return view;
|
46
|
}
|
47
|
|
48
|
}
|