Revision 6ec7fb0b
Added by Patrick Plitzner over 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/dbstatus/SettingsConfigWindow.java | ||
---|---|---|
16 | 16 |
import com.vaadin.ui.ComboBox; |
17 | 17 |
import com.vaadin.ui.CustomComponent; |
18 | 18 |
import com.vaadin.ui.Label; |
19 |
import com.vaadin.ui.Tree; |
|
19 | 20 |
import com.vaadin.ui.TwinColSelect; |
20 | 21 |
import com.vaadin.ui.Window; |
21 | 22 |
|
... | ... | |
46 | 47 |
@AutoGenerated |
47 | 48 |
private ComboBox distAreaBox; |
48 | 49 |
@AutoGenerated |
49 |
private ComboBox taxoNodeBox;
|
|
50 |
private Tree taxonTree;
|
|
50 | 51 |
@AutoGenerated |
51 | 52 |
private Button okButton; |
52 | 53 |
@AutoGenerated |
... | ... | |
69 | 70 |
} |
70 | 71 |
|
71 | 72 |
private void init() { |
72 |
Container taxonNodeContainer = new TaxonNodeContainer(null); |
|
73 |
Container taxonNodeContainer = new TaxonNodeContainer(null, taxonTree);
|
|
73 | 74 |
Container distributionContainer = presenter.getDistributionContainer(); |
74 | 75 |
TermVocabulary chosenArea = presenter.getChosenArea(); |
75 |
taxoNodeBox.setItemCaptionPropertyId(TaxonNodeContainer.LABEL);
|
|
76 |
taxoNodeBox.setContainerDataSource(taxonNodeContainer);
|
|
77 |
taxoNodeBox.setValue(presenter.getChosenTaxonNode());
|
|
76 |
taxonTree.setItemCaptionPropertyId(TaxonNodeContainer.LABEL);
|
|
77 |
taxonTree.setContainerDataSource(taxonNodeContainer);
|
|
78 |
taxonTree.setValue(presenter.getChosenTaxonNode());
|
|
78 | 79 |
distAreaBox.setContainerDataSource(distributionContainer); |
79 | 80 |
distAreaBox.setValue(chosenArea); |
80 | 81 |
distStatusSelect.setContainerDataSource(presenter.getDistributionStatusContainer()); |
... | ... | |
126 | 127 |
mainLayout.addComponent(okButton, "top:380.0px;left:364.0px;"); |
127 | 128 |
|
128 | 129 |
// classificationBox |
129 |
taxoNodeBox = new ComboBox();
|
|
130 |
taxoNodeBox.setImmediate(false);
|
|
131 |
taxoNodeBox.setWidth("-1px");
|
|
132 |
taxoNodeBox.setHeight("-1px");
|
|
133 |
mainLayout.addComponent(taxoNodeBox, "top:97.0px;left:258.0px;");
|
|
130 |
taxonTree = new Tree();
|
|
131 |
taxonTree.setImmediate(false);
|
|
132 |
taxonTree.setWidth("-1px");
|
|
133 |
taxonTree.setHeight("-1px");
|
|
134 |
mainLayout.addComponent(taxonTree, "top:97.0px;left:258.0px;");
|
|
134 | 135 |
|
135 | 136 |
// distAreaBox |
136 | 137 |
distAreaBox = new ComboBox(); |
Also available in: Unified diff
ref #5458 Adapt settings view to tree node selection