ref #7338 TaxonNameEditor mode VALIDATE_AGAINST_HIGHER_NAME_PART implemented for...
[cdm-vaadin.git] / src / main / java / eu / etaxonomy / cdm / vaadin / view / name / TaxonNamePopupEditorView.java
index fa85f0df151c2085da2fb0ff4fbe893967c78b4a..64454e33e4cc83cf49894353486d102240a0bce8 100644 (file)
@@ -8,8 +8,16 @@
 */
 package eu.etaxonomy.cdm.vaadin.view.name;
 
+import java.util.EnumSet;
+
+import com.vaadin.ui.AbstractField;
+import com.vaadin.ui.CheckBox;
+import com.vaadin.ui.ListSelect;
+
 import eu.etaxonomy.cdm.model.name.TaxonName;
 import eu.etaxonomy.cdm.model.reference.Reference;
+import eu.etaxonomy.cdm.vaadin.component.common.TeamOrPersonField;
+import eu.etaxonomy.vaadin.component.NameRelationField;
 import eu.etaxonomy.vaadin.component.ToManyRelatedEntitiesComboboxSelect;
 import eu.etaxonomy.vaadin.component.ToOneRelatedEntityCombobox;
 import eu.etaxonomy.vaadin.mvp.ApplicationView;
@@ -29,6 +37,82 @@ public interface TaxonNamePopupEditorView extends ApplicationView<TaxonNameEdito
     /**
      * @return
      */
-    public ToManyRelatedEntitiesComboboxSelect<TaxonName> getBasionymCombobox();
+    public ToManyRelatedEntitiesComboboxSelect<TaxonName> getBasionymComboboxSelect();
+
+    public ListSelect getRankSelect();
+
+    /**
+     * @return the exBasionymAuthorshipField
+     */
+    public TeamOrPersonField getExBasionymAuthorshipField();
+
+    /**
+     * @return the basionymAuthorshipField
+     */
+    public TeamOrPersonField getBasionymAuthorshipField();
+
+    /**
+     * @return the combinationAuthorshipField
+     */
+    public TeamOrPersonField getCombinationAuthorshipField();
+
+    /**
+     * @return the exCombinationAuthorshipField
+     */
+    public TeamOrPersonField getExCombinationAuthorshipField();
+
+    void disableMode(TaxonNamePopupEditorMode mode);
+
+    /**
+     * Modes must be enabled before calling {@link AbstractPopupEditor#loadInEditor(Object identifier)}.
+     *
+     * @param mode
+     */
+    void enableMode(TaxonNamePopupEditorMode mode);
+
+    /**
+     * @param mode
+     * @return
+     */
+    boolean isModeEnabled(TaxonNamePopupEditorMode mode);
+
+    public EnumSet<TaxonNamePopupEditorMode> getModesActive();
+
+    /**
+     * @return
+     */
+    CheckBox getBasionymToggle();
+
+    void updateAuthorshipFields();
+
+    /**
+     * @return
+     */
+    ToManyRelatedEntitiesComboboxSelect<TaxonName> getReplacedSynonymsComboboxSelect();
+
+    /**
+     * @return
+     */
+    NameRelationField getValidationField();
+
+    /**
+     * @return
+     */
+    AbstractField<String> getGenusOrUninomialField();
+
+    /**
+     * @return the infraGenericEpithetField
+     */
+    public AbstractField<String> getInfraGenericEpithetField();
+
+    /**
+     * @return the specificEpithetField
+     */
+    public AbstractField<String> getSpecificEpithetField();
+
+    /**
+     * @return the infraSpecificEpithetField
+     */
+    public AbstractField<String> getInfraSpecificEpithetField();
 
 }