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
|
|
13
|
import com.vaadin.ui.ListSelect;
|
14
|
import com.vaadin.ui.TextField;
|
15
|
|
16
|
import eu.etaxonomy.cdm.api.service.pager.Pager;
|
17
|
import eu.etaxonomy.cdm.vaadin.component.registration.RegistrationItem;
|
18
|
import eu.etaxonomy.vaadin.mvp.ApplicationView;
|
19
|
|
20
|
/**
|
21
|
* @author a.kohlbecker
|
22
|
* @since Mar 3, 2017
|
23
|
*
|
24
|
*/
|
25
|
public interface ListView extends ApplicationView<ListPresenter>{
|
26
|
|
27
|
enum Mode {
|
28
|
all,
|
29
|
inProgress
|
30
|
}
|
31
|
|
32
|
/**
|
33
|
* @param page
|
34
|
*/
|
35
|
void populate(Pager<RegistrationDTO> registrations);
|
36
|
|
37
|
/**
|
38
|
* @param messages
|
39
|
*/
|
40
|
void openDetailsPopup(String caption, List<String> messages);
|
41
|
|
42
|
/**
|
43
|
* @return the identifierFilter
|
44
|
*/
|
45
|
public TextField getIdentifierFilter();
|
46
|
|
47
|
/**
|
48
|
* @return the taxonNameFilter
|
49
|
*/
|
50
|
public TextField getTaxonNameFilter();
|
51
|
|
52
|
/**
|
53
|
* @return the referenceFilter
|
54
|
*/
|
55
|
public TextField getReferenceFilter();
|
56
|
|
57
|
/**
|
58
|
* @return the statusFilter
|
59
|
*/
|
60
|
public ListSelect getStatusFilter();
|
61
|
|
62
|
/**
|
63
|
* @return the submitterFilter
|
64
|
*/
|
65
|
public ListSelect getSubmitterFilter();
|
66
|
|
67
|
/**
|
68
|
* @param optionInProgress
|
69
|
*/
|
70
|
void setViewMode(Mode mode);
|
71
|
|
72
|
/**
|
73
|
* @return
|
74
|
*/
|
75
|
Mode getViewMode();
|
76
|
|
77
|
public RegistrationItem getRegistrationItem(int registrationId);
|
78
|
|
79
|
|
80
|
}
|