Project

General

Profile

Download (1.21 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 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.event;
10

    
11
import com.vaadin.ui.AbstractField;
12

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

    
15
/**
16
 * @author a.kohlbecker
17
 * @since Jun 13, 2018
18
 *
19
 */
20
public class FieldReplaceEvent<T> {
21

    
22
    private AbstractView sourceView;
23

    
24
    private AbstractField<T> oldField;
25
    private AbstractField<T> newField;
26

    
27
    /**
28
     * @param oldFiled
29
     * @param newField
30
     */
31
    public FieldReplaceEvent(AbstractView sourceView, AbstractField<T> oldField, AbstractField<T> newField) {
32
        this.sourceView = sourceView;
33
        this.oldField = oldField;
34
        this.newField = newField;
35
    }
36

    
37
    /**
38
     * @return the sourceView
39
     */
40
    public AbstractView getSourceView() {
41
        return sourceView;
42
    }
43

    
44
    /**
45
     * @return the oldField
46
     */
47
    public AbstractField<T> getOldField() {
48
        return oldField;
49
    }
50

    
51
    /**
52
     * @return the newField
53
     */
54
    public AbstractField<T> getNewField() {
55
        return newField;
56
    }
57

    
58

    
59
}
(4-4/4)