Project

General

Profile

Download (1.17 KB) Statistics
| Branch: | Tag: | Revision:
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.event;
10

    
11
import com.vaadin.data.fieldgroup.FieldGroup.CommitEvent;
12

    
13
import eu.etaxonomy.vaadin.mvp.AbstractView;
14

    
15
/**
16
 * Usually a notification to a presenter to
17
 * perform a save operation and to commit the transaction
18
 *
19
 * @author a.kohlbecker
20
 * @since Apr 5, 2017
21
 *
22
 */
23
public class EditorSaveEvent implements EditorViewEvent {
24

    
25
    private CommitEvent commitEvent;
26

    
27
    // FIXME this is only a iterim solution for the problem described in https://dev.e-taxonomy.eu/redmine/issues/6562
28
    private AbstractView view;
29

    
30

    
31
    /**
32
     * @param commitEvent
33
     */
34
    public EditorSaveEvent(CommitEvent commitEvent, AbstractView view) {
35
        this.commitEvent = commitEvent;
36
        this.view = view;
37
    }
38

    
39
    public CommitEvent getCommitEvent(){
40
        return commitEvent;
41
    }
42

    
43
    /**
44
     * @return the view
45
     */
46
    @Override
47
    public AbstractView getView() {
48
        return view;
49
    }
50

    
51
}
(2-2/3)