Revision 31abf522
Added by Andreas Müller over 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/distributionStatus/AreaAndTaxonSettingsConfigWindow.java | ||
---|---|---|
15 | 15 |
import java.util.Set; |
16 | 16 |
import java.util.UUID; |
17 | 17 |
|
18 |
import com.vaadin.data.Container; |
|
18 | 19 |
import com.vaadin.data.Property; |
19 | 20 |
import com.vaadin.data.Property.ValueChangeEvent; |
20 | 21 |
import com.vaadin.data.Property.ValueChangeListener; |
... | ... | |
67 | 68 |
private ComboBox distAreaBox; |
68 | 69 |
private ListSelect namedAreaList; |
69 | 70 |
private TreeTable taxonTree; |
70 |
IDistributionTableView distributionTableView; |
|
71 |
private IDistributionTableView distributionTableView;
|
|
71 | 72 |
|
72 | 73 |
/** |
73 | 74 |
* The constructor should first build the main layout, set the |
... | ... | |
110 | 111 |
|
111 | 112 |
//init areas |
112 | 113 |
TermVocabulary<NamedArea> chosenAreaVoc = presenter.getChosenAreaVoc(); |
113 |
distAreaBox.setContainerDataSource(presenter.getDistributionContainer()); |
|
114 |
Container areaContainer = presenter.getAreaContainer(); |
|
115 |
if (areaContainer.size() == 1){ |
|
116 |
chosenAreaVoc = (TermVocabulary<NamedArea>)areaContainer.getItemIds().iterator().next(); |
|
117 |
} |
|
118 |
distAreaBox.setContainerDataSource(areaContainer); |
|
114 | 119 |
distAreaBox.setValue(chosenAreaVoc); |
115 | 120 |
distAreaBox.addValueChangeListener(this); |
116 | 121 |
|
Also available in: Unified diff
ref #6903 allow preferences for distribution area vocabulary and distribution status