2 * Copyright (C) 2017 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.vaadin
.view
.name
;
11 import java
.util
.EnumSet
;
13 import com
.vaadin
.ui
.AbstractField
;
14 import com
.vaadin
.ui
.CheckBox
;
15 import com
.vaadin
.ui
.ListSelect
;
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
;
27 * @author a.kohlbecker
31 public interface TaxonNamePopupEditorView
extends ApplicationView
<TaxonNameEditorPresenter
>, AnnotationsEditor
{
36 public ToOneRelatedEntityCombobox
<Reference
> getNomReferenceCombobox();
41 public ToManyRelatedEntitiesComboboxSelect
<TaxonName
> getBasionymComboboxSelect();
43 public ListSelect
getRankSelect();
46 * @return the exBasionymAuthorshipField
48 public TeamOrPersonField
getExBasionymAuthorshipField();
51 * @return the basionymAuthorshipField
53 public TeamOrPersonField
getBasionymAuthorshipField();
56 * @return the combinationAuthorshipField
58 public TeamOrPersonField
getCombinationAuthorshipField();
61 * @return the exCombinationAuthorshipField
63 public TeamOrPersonField
getExCombinationAuthorshipField();
65 void disableMode(TaxonNamePopupEditorMode mode
);
68 * Modes must be enabled before calling {@link AbstractPopupEditor#loadInEditor(Object identifier)}.
72 void enableMode(TaxonNamePopupEditorMode mode
);
78 boolean isModeEnabled(TaxonNamePopupEditorMode mode
);
80 public EnumSet
<TaxonNamePopupEditorMode
> getModesActive();
85 CheckBox
getBasionymToggle();
87 void updateAuthorshipFields();
92 ToManyRelatedEntitiesComboboxSelect
<TaxonName
> getReplacedSynonymsComboboxSelect();
97 NameRelationField
getValidationField();
102 AbstractField
<String
> getGenusOrUninomialField();
105 * @return the infraGenericEpithetField
107 public AbstractField
<String
> getInfraGenericEpithetField();
110 * @return the specificEpithetField
112 public AbstractField
<String
> getSpecificEpithetField();
115 * @return the infraSpecificEpithetField
117 public AbstractField
<String
> getInfraSpecificEpithetField();