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