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