Revision 18fbda82
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/event/TaxonNameEditorAction.java | ||
---|---|---|
11 | 11 |
import java.util.Stack; |
12 | 12 |
import java.util.UUID; |
13 | 13 |
|
14 |
import com.vaadin.ui.Component; |
|
14 |
import com.vaadin.ui.Button; |
|
15 |
import com.vaadin.ui.Field; |
|
15 | 16 |
|
17 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
|
16 | 18 |
import eu.etaxonomy.vaadin.event.EditorActionType; |
17 | 19 |
import eu.etaxonomy.vaadin.mvp.AbstractView; |
18 | 20 |
|
... | ... | |
21 | 23 |
* @since Mar 22, 2017 |
22 | 24 |
* |
23 | 25 |
*/ |
24 |
public class TaxonNameEditorAction extends AbstractEditorAction { |
|
26 |
public class TaxonNameEditorAction extends AbstractEditorAction<TaxonName> {
|
|
25 | 27 |
|
26 | 28 |
|
27 | 29 |
public TaxonNameEditorAction(EditorActionType eventType) { |
... | ... | |
32 | 34 |
* @param action |
33 | 35 |
* @param source |
34 | 36 |
*/ |
35 |
public TaxonNameEditorAction(EditorActionType action, Component source, AbstractView sourceView) {
|
|
36 |
super(action, source, sourceView); |
|
37 |
public TaxonNameEditorAction(EditorActionType action, Button source, Field<TaxonName> target, AbstractView sourceView) {
|
|
38 |
super(action, source, target, sourceView);
|
|
37 | 39 |
} |
38 | 40 |
|
39 | 41 |
/** |
... | ... | |
42 | 44 |
* @param source |
43 | 45 |
* @param sourceView |
44 | 46 |
*/ |
45 |
public TaxonNameEditorAction(EditorActionType action, UUID entityUuid, Component source, AbstractView sourceView) {
|
|
46 |
super(action, entityUuid, source, sourceView); |
|
47 |
public TaxonNameEditorAction(EditorActionType action, UUID entityUuid, Button source, Field<TaxonName> target, AbstractView sourceView) {
|
|
48 |
super(action, entityUuid, source, target, sourceView);
|
|
47 | 49 |
} |
48 | 50 |
|
49 | 51 |
/** |
... | ... | |
53 | 55 |
* @param sourceView |
54 | 56 |
* @param context |
55 | 57 |
*/ |
56 |
public TaxonNameEditorAction(EditorActionType action, UUID entityUuid, Component source, AbstractView sourceView,
|
|
58 |
public TaxonNameEditorAction(EditorActionType action, UUID entityUuid, Button source, Field<TaxonName> target, AbstractView sourceView,
|
|
57 | 59 |
Stack<EditorActionContext> context) { |
58 |
super(action, entityUuid, source, sourceView, context); |
|
60 |
super(action, entityUuid, source, target, sourceView, context);
|
|
59 | 61 |
} |
60 | 62 |
|
61 | 63 |
|
Also available in: Unified diff
AbstractEditorAction now with source button and target field