Revision 49d7537a
Added by Patrick Plitzner almost 8 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/dbstatus/DistributionSelectionView.java | ||
---|---|---|
40 | 40 |
@AutoGenerated |
41 | 41 |
private ComboBox distributionAreaBox; |
42 | 42 |
@AutoGenerated |
43 |
private ComboBox classificationBox;
|
|
43 |
private ComboBox taxonNodeBox;
|
|
44 | 44 |
@AutoGenerated |
45 | 45 |
private Label label_1; |
46 | 46 |
/** |
... | ... | |
71 | 71 |
|
72 | 72 |
@Override |
73 | 73 |
public void buttonClick(ClickEvent event) { |
74 |
if(classificationBox != null && distributionAreaBox != null){
|
|
75 |
TaxonNode classification = (TaxonNode) classificationBox.getValue();
|
|
74 |
if(taxonNodeBox != null && distributionAreaBox != null){
|
|
75 |
TaxonNode classification = (TaxonNode) taxonNodeBox.getValue();
|
|
76 | 76 |
TermVocabulary<DefinedTermBase> term = (TermVocabulary<DefinedTermBase>)distributionAreaBox.getValue(); |
77 | 77 |
try { |
78 | 78 |
distListener.buttonClick(classification, term); |
... | ... | |
98 | 98 |
item.getItemProperty(propertyId).setValue(taxonNode.getClassification().getName().getText()); |
99 | 99 |
} |
100 | 100 |
} |
101 |
classificationBox.setItemCaptionPropertyId(propertyId);
|
|
102 |
classificationBox.setContainerDataSource(c);
|
|
101 |
taxonNodeBox.setItemCaptionPropertyId(propertyId);
|
|
102 |
taxonNodeBox.setContainerDataSource(c);
|
|
103 | 103 |
// classificationSelection.setContainerDataSource(c); |
104 | 104 |
Container d = new IndexedContainer(namedAreaList); |
105 | 105 |
distributionAreaBox.setContainerDataSource(d); |
... | ... | |
167 | 167 |
verticalLayout_2.addComponent(label_1); |
168 | 168 |
|
169 | 169 |
// classificationBox |
170 |
classificationBox = new ComboBox();
|
|
171 |
classificationBox.setCaption("Classification: ");
|
|
172 |
classificationBox.setImmediate(false);
|
|
173 |
classificationBox.setWidth("200px");
|
|
174 |
classificationBox.setHeight("-1px");
|
|
175 |
verticalLayout_2.addComponent(classificationBox);
|
|
170 |
taxonNodeBox = new ComboBox();
|
|
171 |
taxonNodeBox.setCaption("Classification: ");
|
|
172 |
taxonNodeBox.setImmediate(false);
|
|
173 |
taxonNodeBox.setWidth("200px");
|
|
174 |
taxonNodeBox.setHeight("-1px");
|
|
175 |
verticalLayout_2.addComponent(taxonNodeBox);
|
|
176 | 176 |
|
177 | 177 |
// distributionAreaBox |
178 | 178 |
distributionAreaBox = new ComboBox(); |
Also available in: Unified diff
Renaming #5458