Revision 49a35b7d
Added by Patrick Plitzner over 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/presenter/dbstatus/DistributionSelectionPresenter.java | ||
---|---|---|
1 | 1 |
package eu.etaxonomy.cdm.vaadin.presenter.dbstatus; |
2 | 2 |
|
3 |
import java.sql.SQLException; |
|
4 | 3 |
import java.util.ArrayList; |
5 | 4 |
import java.util.Arrays; |
6 | 5 |
import java.util.List; |
... | ... | |
22 | 21 |
import eu.etaxonomy.cdm.vaadin.util.DistributionEditorUtil; |
23 | 22 |
import eu.etaxonomy.cdm.vaadin.view.dbstatus.DistributionSelectionView; |
24 | 23 |
import eu.etaxonomy.cdm.vaadin.view.dbstatus.DistributionTableView; |
25 |
import eu.etaxonomy.cdm.vaadin.view.dbstatus.IDistributionSelectionComponent; |
|
26 | 24 |
|
27 |
public class DistributionSelectionPresenter implements IDistributionSelectionComponent.DistributionSelectionComponentListener {
|
|
25 |
public class DistributionSelectionPresenter { |
|
28 | 26 |
|
29 | 27 |
private DistributionSelectionView view; |
30 | 28 |
|
... | ... | |
34 | 32 |
view.dataBinding(); |
35 | 33 |
} |
36 | 34 |
|
37 |
@Override |
|
38 |
public void buttonClick(TaxonNode taxonNode, TermVocabulary<DefinedTermBase> term, Set<NamedArea> selectedAreas) throws SQLException { |
|
35 |
public void buttonClick(TaxonNode taxonNode, TermVocabulary<DefinedTermBase> term, Set<NamedArea> selectedAreas) { |
|
39 | 36 |
DistributionTableView dtv = new DistributionTableView(); |
40 | 37 |
new DistributionTablePresenter(dtv); |
41 | 38 |
UI.getCurrent().getNavigator().addView("table", dtv); |
... | ... | |
43 | 40 |
DistributionEditorUtil.openDistributionView(taxonNode, term, selectedAreas); |
44 | 41 |
} |
45 | 42 |
|
46 |
@Override |
|
47 | 43 |
public List<TaxonNode> getTaxonNodeList() { |
48 | 44 |
List<TaxonNode> nodes = new ArrayList<TaxonNode>(); |
49 | 45 |
|
... | ... | |
67 | 63 |
return nodes; |
68 | 64 |
} |
69 | 65 |
|
70 |
@Override |
|
71 | 66 |
public List<TermVocabulary<DefinedTermBase>> getNamedAreaList() { |
72 | 67 |
|
73 | 68 |
IVocabularyService vocabularyService = CdmSpringContextHelper.getVocabularyService(); |
Also available in: Unified diff
ref #5458 Refactoring