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