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 java.util.Stack;
|
12
|
import java.util.UUID;
|
13
|
|
14
|
import com.vaadin.ui.Button;
|
15
|
import com.vaadin.ui.Field;
|
16
|
|
17
|
import eu.etaxonomy.vaadin.event.EditorActionType;
|
18
|
import eu.etaxonomy.vaadin.mvp.AbstractView;
|
19
|
|
20
|
/**
|
21
|
* Variant of the TaxonNameEditorAction with to be published from fields like the {@link eu.etaxonomy.vaadin.component.WeaklyRelatedEntityCombobox} which
|
22
|
* contain string representations of an entity instead of the whole entit.y
|
23
|
*
|
24
|
* @author a.kohlbecker
|
25
|
* @since Mar 22, 2017
|
26
|
*
|
27
|
*/
|
28
|
public class TaxonNameEditorActionStrRep extends AbstractEditorAction<String> {
|
29
|
|
30
|
|
31
|
public TaxonNameEditorActionStrRep(EditorActionType eventType) {
|
32
|
super(eventType);
|
33
|
}
|
34
|
|
35
|
/**
|
36
|
* @param action
|
37
|
* @param source
|
38
|
*/
|
39
|
public TaxonNameEditorActionStrRep(EditorActionType action, Button source, Field<String> target, AbstractView sourceView) {
|
40
|
super(action, source, target, sourceView);
|
41
|
}
|
42
|
|
43
|
/**
|
44
|
* @param action
|
45
|
* @param entityId
|
46
|
* @param source
|
47
|
* @param sourceView
|
48
|
*/
|
49
|
public TaxonNameEditorActionStrRep(EditorActionType action, UUID entityUuid, Button source, Field<String> target, AbstractView sourceView) {
|
50
|
super(action, entityUuid, source, target, sourceView);
|
51
|
}
|
52
|
|
53
|
/**
|
54
|
* @param action
|
55
|
* @param entityId
|
56
|
* @param source
|
57
|
* @param sourceView
|
58
|
* @param context
|
59
|
*/
|
60
|
public TaxonNameEditorActionStrRep(EditorActionType action, UUID entityUuid, Button source, Field<String> target, AbstractView sourceView,
|
61
|
Stack<EditorActionContext> context) {
|
62
|
super(action, entityUuid, source, target, sourceView, context);
|
63
|
}
|
64
|
|
65
|
|
66
|
|
67
|
|
68
|
}
|