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.view.name;
|
10
|
|
11
|
import java.util.EnumSet;
|
12
|
|
13
|
import com.vaadin.ui.AbstractField;
|
14
|
import com.vaadin.ui.CheckBox;
|
15
|
import com.vaadin.ui.ListSelect;
|
16
|
|
17
|
import eu.etaxonomy.cdm.model.name.TaxonName;
|
18
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
19
|
import eu.etaxonomy.cdm.vaadin.component.common.TeamOrPersonField;
|
20
|
import eu.etaxonomy.vaadin.component.NameRelationField;
|
21
|
import eu.etaxonomy.vaadin.component.ToManyRelatedEntitiesComboboxSelect;
|
22
|
import eu.etaxonomy.vaadin.component.ToOneRelatedEntityCombobox;
|
23
|
import eu.etaxonomy.vaadin.mvp.ApplicationView;
|
24
|
|
25
|
/**
|
26
|
* @author a.kohlbecker
|
27
|
* @since May 22, 2017
|
28
|
*
|
29
|
*/
|
30
|
public interface TaxonNamePopupEditorView extends ApplicationView<TaxonNameEditorPresenter> {
|
31
|
|
32
|
/**
|
33
|
* @return
|
34
|
*/
|
35
|
public ToOneRelatedEntityCombobox<Reference> getNomReferenceCombobox();
|
36
|
|
37
|
/**
|
38
|
* @return
|
39
|
*/
|
40
|
public ToManyRelatedEntitiesComboboxSelect<TaxonName> getBasionymComboboxSelect();
|
41
|
|
42
|
public ListSelect getRankSelect();
|
43
|
|
44
|
/**
|
45
|
* @return the exBasionymAuthorshipField
|
46
|
*/
|
47
|
public TeamOrPersonField getExBasionymAuthorshipField();
|
48
|
|
49
|
/**
|
50
|
* @return the basionymAuthorshipField
|
51
|
*/
|
52
|
public TeamOrPersonField getBasionymAuthorshipField();
|
53
|
|
54
|
/**
|
55
|
* @return the combinationAuthorshipField
|
56
|
*/
|
57
|
public TeamOrPersonField getCombinationAuthorshipField();
|
58
|
|
59
|
/**
|
60
|
* @return the exCombinationAuthorshipField
|
61
|
*/
|
62
|
public TeamOrPersonField getExCombinationAuthorshipField();
|
63
|
|
64
|
void disableMode(TaxonNamePopupEditorMode mode);
|
65
|
|
66
|
/**
|
67
|
* Modes must be enabled before calling {@link AbstractPopupEditor#loadInEditor(Object identifier)}.
|
68
|
*
|
69
|
* @param mode
|
70
|
*/
|
71
|
void enableMode(TaxonNamePopupEditorMode mode);
|
72
|
|
73
|
/**
|
74
|
* @param mode
|
75
|
* @return
|
76
|
*/
|
77
|
boolean isModeEnabled(TaxonNamePopupEditorMode mode);
|
78
|
|
79
|
public EnumSet<TaxonNamePopupEditorMode> getModesActive();
|
80
|
|
81
|
/**
|
82
|
* @return
|
83
|
*/
|
84
|
CheckBox getBasionymToggle();
|
85
|
|
86
|
void updateAuthorshipFields();
|
87
|
|
88
|
/**
|
89
|
* @return
|
90
|
*/
|
91
|
ToManyRelatedEntitiesComboboxSelect<TaxonName> getReplacedSynonymsComboboxSelect();
|
92
|
|
93
|
/**
|
94
|
* @return
|
95
|
*/
|
96
|
NameRelationField getValidationField();
|
97
|
|
98
|
/**
|
99
|
* @return
|
100
|
*/
|
101
|
AbstractField<String> getGenusOrUninomialField();
|
102
|
|
103
|
/**
|
104
|
* @return the infraGenericEpithetField
|
105
|
*/
|
106
|
public AbstractField<String> getInfraGenericEpithetField();
|
107
|
|
108
|
/**
|
109
|
* @return the specificEpithetField
|
110
|
*/
|
111
|
public AbstractField<String> getSpecificEpithetField();
|
112
|
|
113
|
/**
|
114
|
* @return the infraSpecificEpithetField
|
115
|
*/
|
116
|
public AbstractField<String> getInfraSpecificEpithetField();
|
117
|
|
118
|
}
|