Revision d7ad25d9
Added by Katja Luther over 2 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/CreditElement.java | ||
---|---|---|
68 | 68 |
EntitySelectionElement.ALL, style); |
69 | 69 |
text = formFactory.createMultiLineTextWithLabel(this, "Text", 100, |
70 | 70 |
style); |
71 |
if (entity != null){ |
|
72 |
setEntity(entity); |
|
73 |
} |
|
71 | 74 |
} |
72 | 75 |
|
73 | 76 |
/* |
... | ... | |
81 | 84 |
@Override |
82 | 85 |
public void setEntity(Credit element) { |
83 | 86 |
this.entity = element; |
84 |
|
|
85 |
agentSelection.setEntity(element.getAgent()); |
|
86 |
text.setText(element.getText()); |
|
87 |
if (agentSelection != null){ |
|
88 |
agentSelection.setEntity(element.getAgent()); |
|
89 |
text.setText(element.getText()); |
|
90 |
} |
|
87 | 91 |
} |
88 | 92 |
|
89 | 93 |
/** {@inheritDoc} */ |
Also available in: Unified diff
ref #9838: change order of ui element creation and setting entity in collection elements