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
|
/**
|
14
|
* @author a.kohlbecker
|
15
|
* @since May 25, 2017
|
16
|
*
|
17
|
*/
|
18
|
public class EntityEditorAction extends AbstractEditorAction {
|
19
|
|
20
|
private Class<?> entityType;
|
21
|
|
22
|
/**
|
23
|
* @param type
|
24
|
* @param entityId
|
25
|
* @param source
|
26
|
*/
|
27
|
public EntityEditorAction(Action action, Class<?> entityType, Integer entityId, Component source) {
|
28
|
super(action, entityId, source);
|
29
|
this.entityType = entityType;
|
30
|
}
|
31
|
|
32
|
/**
|
33
|
* @param type
|
34
|
* @param entityId
|
35
|
*/
|
36
|
public EntityEditorAction(Action action, Class<?> entityType, Integer entityId) {
|
37
|
super(action, entityId);
|
38
|
this.entityType = entityType;
|
39
|
}
|
40
|
|
41
|
/**
|
42
|
* @param type
|
43
|
*/
|
44
|
public EntityEditorAction(Action action, Class<?> entityType) {
|
45
|
super(action);
|
46
|
this.entityType = entityType;
|
47
|
}
|
48
|
|
49
|
/**
|
50
|
* @param action
|
51
|
* @param source
|
52
|
*/
|
53
|
public EntityEditorAction(Action action, Class<?> entityType, Component source) {
|
54
|
super(action, source);
|
55
|
this.entityType = entityType;
|
56
|
}
|
57
|
|
58
|
/**
|
59
|
* @return the entityType
|
60
|
*/
|
61
|
public Class<?> getEntityType() {
|
62
|
return entityType;
|
63
|
}
|
64
|
|
65
|
|
66
|
}
|