Project

General

Profile

« Previous | Next » 

Revision 96783004

Added by Andreas Kohlbecker almost 7 years ago

ref #6562 presenters can handle events from own view & solving listSelect update problem

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/event/AbstractEditorAction.java
10 10

  
11 11
import com.vaadin.ui.Component;
12 12

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

  
13 15
/**
14 16
 * @author a.kohlbecker
15 17
 * @since Mar 22, 2017
......
23 25
        REMOVE;
24 26
    }
25 27

  
26
    private Component source = null;
28
    private Component sourceComponent = null;
29

  
30
    private AbstractView sourceView = null;
27 31

  
28 32
    public AbstractEditorAction(Action action) {
29 33
        super(action, null);
......
43 47

  
44 48
    public AbstractEditorAction(Action action, Integer entityId, Component source) {
45 49
        super(action, entityId);
46
        this.source = source;
50
        this.sourceComponent = source;
51
    }
52

  
53
    public AbstractEditorAction(Action action, Integer entityId, Component source, AbstractView sourceView) {
54
        super(action, entityId);
55
        this.sourceComponent = source;
56
        this.sourceView = sourceView;
47 57
    }
48 58

  
49 59
    public boolean isAddAction() {
......
58 68
        return type.equals(Action.REMOVE);
59 69
    }
60 70

  
61
    public Component getSource(){
62
        return source;
71
    public Component getSourceComponent(){
72
        return sourceComponent;
63 73
    }
64 74

  
65 75
    public boolean hasSource() {
66
        return source != null;
76
        return sourceComponent != null;
77
    }
78

  
79
    /**
80
     * @return the sourceView
81
     */
82
    public AbstractView getSourceView() {
83
        return sourceView;
67 84
    }
68 85

  
69 86

  

Also available in: Unified diff