Project

General

Profile

« Previous | Next » 

Revision 538800b4

Added by Andreas Kohlbecker almost 7 years ago

ref #6169 first implementation of delete operations

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/event/EditorSaveEvent.java
8 8
*/
9 9
package eu.etaxonomy.vaadin.mvp.event;
10 10

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

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

  
15 13
/**
......
20 18
 * @since Apr 5, 2017
21 19
 *
22 20
 */
23
public class EditorSaveEvent implements EditorViewEvent {
24

  
25
    private CommitEvent commitEvent;
21
public class EditorSaveEvent<DTO extends Object> implements EditorViewEvent, EditorBeanEvent<DTO> {
26 22

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

  
29 26

  
27
    private DTO bean;
30 28

  
31 29
    /**
32
     * @param commitEvent
33 30
     */
34
    public EditorSaveEvent(CommitEvent commitEvent, AbstractView view) {
35
        this.commitEvent = commitEvent;
31
    public EditorSaveEvent(AbstractView<?> view, DTO bean) {
32
        this.bean = bean;
36 33
        this.view = view;
37 34
    }
38 35

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

  
43 36
    /**
44 37
     * @return the view
45 38
     */
46 39
    @Override
47
    public AbstractView getView() {
40
    public AbstractView<?> getView() {
48 41
        return view;
49 42
    }
50 43

  
44
    /**
45
     * {@inheritDoc}
46
     */
47
    @Override
48
    public DTO getBean() {
49
        return bean;
50
    }
51 51
}

Also available in: Unified diff