Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/StatisticalMeasureDtoCollectionElement.java | ||
---|---|---|
49 | 49 |
@Override |
50 | 50 |
public void createControls(ICdmFormElement element, int style) { |
51 | 51 |
comboStatisticalMeasure = formFactory.createDefinedTermComboElementDto(TermType.StatisticalMeasure, element, "Statistical measure", null, style); |
52 |
if (entity != null){ |
|
53 |
setEntity(entity); |
|
54 |
} |
|
52 | 55 |
} |
53 | 56 |
|
54 | 57 |
@Override |
55 | 58 |
public void setEntity(TermDto entity) { |
56 | 59 |
this.entity = entity; |
57 |
// if(entity.getId()!=0){
|
|
60 |
if(comboStatisticalMeasure != null){
|
|
58 | 61 |
comboStatisticalMeasure.setSelectionDto(entity); |
59 | 62 |
comboStatisticalMeasure.removeEmptyElement(); |
60 |
// }
|
|
63 |
} |
|
61 | 64 |
} |
62 | 65 |
|
63 | 66 |
@Override |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements