Project

General

Profile

Download (2.39 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.UUID;
13

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

    
16
import com.vaadin.ui.AbstractLayout;
17
import com.vaadin.ui.Button;
18

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

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

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

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

    
35

    
36
    AbstractLayout getWorkflow();
37

    
38

    
39
    /**
40
     * Open a popup editor for an existing TaxonName if the nameUuid is
41
     * given otherwise a blank editor will open if the  nameUuid is null.
42
     *
43
     * @param nameUuid can be null
44
     */
45
    void openNameEditor(UUID nameUuid);
46

    
47
    /**
48
     * Open a popup editor for an existing Reference if the referenceUuid is
49
     * given otherwise a blank editor will open if the  referenceUuid is null.
50
     *
51
     * @param referenceUuid can be null
52
     */
53
    void openReferenceEditor(UUID referenceUuid);
54

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

    
60
    /**
61
     * @param subheaderText
62
     */
63
    void setHeaderText(String subheaderText);
64

    
65
    /**
66
     * @param workingset
67
     */
68
    void setWorkingset(RegistrationWorkingSet workingset);
69

    
70
    void addBlockingRegistration(RegistrationDTO blocking);
71

    
72
    /**
73
     * @param messages
74
     */
75
    void openDetailsPopup(String caption, List<String> messages);
76

    
77
    Button getAddNewNameRegistrationButton();
78

    
79
    /**
80
     * @return
81
     */
82
    Button getAddExistingNameRegistrationButton();
83

    
84
    public LazyComboBox<TaxonName> getAddExistingNameCombobox();
85

    
86
    Integer getCitationID();
87

    
88

    
89
    /**
90
     * selecting a type will cause a {@link TypeDesignationWorkingsetEditorAction} to be emitted.
91
     * On Cancel .. TODO
92
     * @param registrationEntityId
93
     */
94
    void chooseNewTypeRegistrationWorkingset(Integer registrationEntityId);
95

    
96

    
97

    
98

    
99

    
100

    
101

    
102
}
(13-13/19)