Project

General

Profile

Download (2.09 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.cdm.vaadin.event;
10

    
11
import com.vaadin.ui.Component;
12

    
13
import eu.etaxonomy.cdm.vaadin.util.converter.TypeDesignationSetManager.TypeDesignationWorkingSetType;
14
import eu.etaxonomy.vaadin.mvp.AbstractView;
15

    
16
/**
17
 * @author a.kohlbecker
18
 * @since Mar 22, 2017
19
 *
20
 */
21
public class TypeDesignationWorkingsetEditorAction extends AbstractEditorAction {
22

    
23
    private TypeDesignationWorkingSetType workingSetType;
24

    
25
    private int registrationId;
26

    
27
    /**
28
     *
29
     * @param action
30
     * @param typeDesignationWorkingsetId
31
     * @param workingSetType
32
     * @param registrationId
33
     * @param source
34
     * @param sourceView
35
     */
36
    public TypeDesignationWorkingsetEditorAction(Action action, Integer typeDesignationWorkingsetId, TypeDesignationWorkingSetType workingSetType, int registrationId,
37
            Component source, AbstractView sourceView) {
38
        super(action, typeDesignationWorkingsetId, source, sourceView);
39
        this.registrationId = registrationId;
40
        this.workingSetType = workingSetType;
41
    }
42

    
43
    /**
44
     *
45
     * @param action
46
     * @param workingSetType
47
     * @param registrationId
48
     * @param source
49
     * @param sourceView
50
     */
51
    public TypeDesignationWorkingsetEditorAction(Action action, TypeDesignationWorkingSetType workingSetType, int registrationId,
52
            Component source, AbstractView sourceView) {
53
        super(action, null, source, sourceView);
54
        this.workingSetType = workingSetType;
55
        this.registrationId = registrationId;
56
    }
57

    
58
    /**
59
     *
60
     * @return
61
     */
62
    public TypeDesignationWorkingSetType getWorkingSetType() {
63
        return workingSetType;
64
    }
65

    
66
    /**
67
     * @return the registrationId
68
     */
69
    public int getRegistrationId() {
70
        return registrationId;
71
    }
72

    
73
    public Integer getTypeDesignationWorkingsetId(){
74
        return getEntityId();
75
    }
76

    
77

    
78

    
79

    
80

    
81
}
(16-16/16)