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.event.EditorActionType;
|
15
|
import eu.etaxonomy.vaadin.mvp.AbstractView;
|
16
|
|
17
|
/**
|
18
|
* @author a.kohlbecker
|
19
|
* @since Mar 22, 2017
|
20
|
*
|
21
|
*/
|
22
|
public class TypeDesignationWorkingsetEditorAction extends AbstractEditorAction {
|
23
|
|
24
|
private TypeDesignationWorkingSetType workingSetType;
|
25
|
|
26
|
private int registrationId;
|
27
|
|
28
|
/**
|
29
|
*
|
30
|
* @param action
|
31
|
* @param typeDesignationWorkingsetId
|
32
|
* @param workingSetType
|
33
|
* @param registrationId
|
34
|
* @param source
|
35
|
* @param sourceView
|
36
|
*/
|
37
|
public TypeDesignationWorkingsetEditorAction(EditorActionType action, Integer typeDesignationWorkingsetId, TypeDesignationWorkingSetType workingSetType, int registrationId,
|
38
|
Component source, AbstractView sourceView) {
|
39
|
super(action, typeDesignationWorkingsetId, source, sourceView);
|
40
|
this.registrationId = registrationId;
|
41
|
this.workingSetType = workingSetType;
|
42
|
}
|
43
|
|
44
|
/**
|
45
|
*
|
46
|
* @param action
|
47
|
* @param workingSetType
|
48
|
* @param registrationId
|
49
|
* @param source
|
50
|
* @param sourceView
|
51
|
*/
|
52
|
public TypeDesignationWorkingsetEditorAction(EditorActionType action, TypeDesignationWorkingSetType workingSetType, int registrationId,
|
53
|
Component source, AbstractView sourceView) {
|
54
|
super(action, null, source, sourceView);
|
55
|
this.workingSetType = workingSetType;
|
56
|
this.registrationId = registrationId;
|
57
|
}
|
58
|
|
59
|
/**
|
60
|
*
|
61
|
* @return
|
62
|
*/
|
63
|
public TypeDesignationWorkingSetType getWorkingSetType() {
|
64
|
return workingSetType;
|
65
|
}
|
66
|
|
67
|
/**
|
68
|
* @return the registrationId
|
69
|
*/
|
70
|
public int getRegistrationId() {
|
71
|
return registrationId;
|
72
|
}
|
73
|
|
74
|
public Integer getTypeDesignationWorkingsetId(){
|
75
|
return getEntityId();
|
76
|
}
|
77
|
|
78
|
|
79
|
|
80
|
|
81
|
|
82
|
}
|