Project

General

Profile

Download (2.46 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.registration;
10

    
11
import java.util.List;
12
import java.util.Set;
13
import java.util.UUID;
14

    
15
import org.vaadin.viritin.fields.LazyComboBox;
16

    
17
import com.vaadin.ui.Button;
18

    
19
import eu.etaxonomy.cdm.model.name.TaxonName;
20
import eu.etaxonomy.cdm.vaadin.model.registration.RegistrationWorkingSet;
21
import eu.etaxonomy.vaadin.mvp.ApplicationView;
22

    
23
/**
24
 * @author a.kohlbecker
25
 * @since Mar 3, 2017
26
 *
27
 */
28
public interface RegistrationWorkingsetView extends ApplicationView{
29

    
30
    public static final String ACTION_NEW = "new";
31

    
32
    public static final String ACTION_EDIT = "edit";
33

    
34
    /**
35
     * Open a popup editor for an existing TaxonName if the nameUuid is
36
     * given otherwise a blank editor will open if the  nameUuid is null.
37
     *
38
     * @param nameUuid can be null
39
     */
40
    void openNameEditor(UUID nameUuid);
41

    
42
    /**
43
     * Open a popup editor for an existing Reference if the referenceUuid is
44
     * given otherwise a blank editor will open if the  referenceUuid is null.
45
     *
46
     * @param referenceUuid can be null
47
     */
48
    void openReferenceEditor(UUID referenceUuid);
49

    
50
    /**
51
     * @param subheaderText
52
     */
53
    void setSubheaderText(String subheaderText);
54

    
55
    /**
56
     * @param subheaderText
57
     */
58
    void setHeaderText(String subheaderText);
59

    
60
    /**
61
     * @param workingset
62
     */
63
    void setWorkingset(RegistrationWorkingSet workingset);
64

    
65
    @Deprecated // no longer needed
66
    void addBlockingRegistration(RegistrationDTO blocking);
67

    
68
    /**
69
     * @param messages
70
     */
71
    void openDetailsPopup(String caption, List<String> messages);
72

    
73
    Button getAddNewNameRegistrationButton();
74

    
75
    /**
76
     * @return
77
     */
78
    Button getAddExistingNameRegistrationButton();
79

    
80
    public LazyComboBox<TaxonName> getAddExistingNameCombobox();
81

    
82
    Integer getCitationID();
83

    
84

    
85
    /**
86
     * selecting a type will cause a {@link TypeDesignationWorkingsetEditorAction} to be emitted.
87
     * On Cancel .. TODO
88
     * @param registrationEntityId
89
     */
90
    void chooseNewTypeRegistrationWorkingset(Integer registrationEntityId);
91

    
92
    /**
93
     * @param registrationId
94
     * @param blockingRegDTOs
95
     */
96
    void setBlockingRegistrations(int registrationId, Set<RegistrationDTO> blockingRegDTOs);
97

    
98

    
99

    
100

    
101

    
102

    
103

    
104
}
(13-13/19)