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.distributionStatus.settings;
|
10
|
|
11
|
import java.util.Arrays;
|
12
|
import java.util.List;
|
13
|
|
14
|
import com.vaadin.data.Container;
|
15
|
import com.vaadin.data.util.IndexedContainer;
|
16
|
|
17
|
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
|
18
|
import eu.etaxonomy.cdm.vaadin.container.PresenceAbsenceTermContainer;
|
19
|
|
20
|
/**
|
21
|
* @author a.mueller
|
22
|
* @date 22.10.2017
|
23
|
*
|
24
|
*/
|
25
|
public class DistributionStatusSettingsPresenter extends SettingsPresenterBase {
|
26
|
|
27
|
private Container distributionStatusContainer;
|
28
|
|
29
|
/**
|
30
|
* @param distributionStatusContainer
|
31
|
*/
|
32
|
public DistributionStatusSettingsPresenter() {
|
33
|
super();
|
34
|
distributionStatusContainer = new IndexedContainer(getDistributionStatusList());
|
35
|
}
|
36
|
|
37
|
private List<PresenceAbsenceTerm> getDistributionStatusList(){
|
38
|
return PresenceAbsenceTermContainer.getDistributionStatusList(TERMS_INIT_STRATEGY);
|
39
|
}
|
40
|
|
41
|
|
42
|
|
43
|
public Container getDistributionStatusContainer() {
|
44
|
return distributionStatusContainer;
|
45
|
}
|
46
|
|
47
|
protected static final List<String> TERMS_INIT_STRATEGY = Arrays.asList(new String []{
|
48
|
"$",
|
49
|
"representations",
|
50
|
});
|
51
|
}
|