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