Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/SpecimenTypeDesignationElement.java | ||
---|---|---|
54 | 54 |
formElement, "Designation Status", null, style, new TypeDesignationStatusComparator<SpecimenTypeDesignationStatus>()); |
55 | 55 |
|
56 | 56 |
super.createControls(formElement, style); |
57 |
setEntity(entity); |
|
57 | 58 |
} |
58 | 59 |
|
59 | 60 |
@Override |
60 | 61 |
public void setEntity(SpecimenTypeDesignation entity) { |
61 | 62 |
super.setEntity(entity); |
62 |
if (entity.getTypeSpecimen() != null){ |
|
63 |
selection_typeSpecimen.setEntity(entity.getTypeSpecimen()); |
|
64 |
}else{ |
|
65 |
selection_typeSpecimen.setEntity(entity.getTypeSpecimen()); |
|
66 |
} |
|
67 |
|
|
68 |
SpecimenTypeDesignationStatus typeStatus = HibernateProxyHelper |
|
69 |
.deproxy(entity.getTypeStatus(), SpecimenTypeDesignationStatus.class); |
|
70 |
combo_typeStatus.setSelection(typeStatus); |
|
71 |
|
|
72 |
checkbox_notDesignated.setSelection(entity.isNotDesignated()); |
|
63 |
if (selection_typeSpecimen != null){ |
|
64 |
if (entity.getTypeSpecimen() != null){ |
|
65 |
selection_typeSpecimen.setEntity(entity.getTypeSpecimen()); |
|
66 |
}else{ |
|
67 |
selection_typeSpecimen.setEntity(entity.getTypeSpecimen()); |
|
68 |
} |
|
69 |
|
|
70 |
SpecimenTypeDesignationStatus typeStatus = HibernateProxyHelper |
|
71 |
.deproxy(entity.getTypeStatus(), SpecimenTypeDesignationStatus.class); |
|
72 |
combo_typeStatus.setSelection(typeStatus); |
|
73 |
|
|
74 |
checkbox_notDesignated.setSelection(entity.isNotDesignated()); |
|
75 |
} |
|
73 | 76 |
} |
74 | 77 |
|
75 | 78 |
@Override |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements