Project

General

Profile

Download (2.24 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 org.apache.commons.lang3.BooleanUtils;
14

    
15
import com.vaadin.ui.CheckBox;
16
import com.vaadin.ui.ListSelect;
17

    
18
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;
19
import eu.etaxonomy.cdm.model.name.TaxonName;
20
import eu.etaxonomy.cdm.model.reference.Reference;
21
import eu.etaxonomy.cdm.vaadin.component.common.TeamOrPersonField;
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> {
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
}
(12-12/13)