Project

General

Profile

Download (2.11 KB) Statistics
| Branch: | Tag: | Revision:
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.ToManyRelatedEntitiesComboboxSelect;
20
import eu.etaxonomy.vaadin.component.ToOneRelatedEntityCombobox;
21
import eu.etaxonomy.vaadin.mvp.ApplicationView;
22

    
23
/**
24
 * @author a.kohlbecker
25
 * @since May 22, 2017
26
 *
27
 */
28
public interface TaxonNamePopupEditorView extends ApplicationView<TaxonNameEditorPresenter> {
29

    
30
    /**
31
     * @return
32
     */
33
    public ToOneRelatedEntityCombobox<Reference> getNomReferenceCombobox();
34

    
35
    /**
36
     * @return
37
     */
38
    public ToManyRelatedEntitiesComboboxSelect<TaxonName> getBasionymComboboxSelect();
39

    
40
    public ListSelect getRankSelect();
41

    
42
    /**
43
     * @return the exBasionymAuthorshipField
44
     */
45
    public TeamOrPersonField getExBasionymAuthorshipField();
46

    
47
    /**
48
     * @return the basionymAuthorshipField
49
     */
50
    public TeamOrPersonField getBasionymAuthorshipField();
51

    
52
    /**
53
     * @return the combinationAuthorshipField
54
     */
55
    public TeamOrPersonField getCombinationAuthorshipField();
56

    
57
    /**
58
     * @return the exCombinationAuthorshipField
59
     */
60
    public TeamOrPersonField getExCombinationAuthorshipField();
61

    
62
    void disableMode(TaxonNamePopupEditorMode mode);
63

    
64
    /**
65
     * Modes must be enabled before calling {@link AbstractPopupEditor#loadInEditor(Object identifier)}.
66
     *
67
     * @param mode
68
     */
69
    void enableMode(TaxonNamePopupEditorMode mode);
70

    
71
    /**
72
     * @param mode
73
     * @return
74
     */
75
    boolean isModeEnabled(TaxonNamePopupEditorMode mode);
76

    
77
    public EnumSet<TaxonNamePopupEditorMode> getModesActive();
78

    
79
    /**
80
     * @return
81
     */
82
    CheckBox getBasionymToggle();
83

    
84
}
(9-9/10)