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