Revision 4f8dbab4
Added by Katja Luther almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/PersonDetailElement.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.OrcidWithLabelElement; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement; |
23 |
import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement; |
|
23 | 24 |
import eu.etaxonomy.taxeditor.ui.section.AbstractIdentifiableEntityDetailElement; |
24 | 25 |
|
25 | 26 |
/** |
... | ... | |
39 | 40 |
private TextWithLabelElement text_prefix; |
40 | 41 |
private TextWithLabelElement text_suffix; |
41 | 42 |
private TextWithLabelElement text_initials; |
43 |
private TimePeriodElement time_lifespan; |
|
42 | 44 |
private OrcidWithLabelElement text_orcid; |
43 | 45 |
|
44 | 46 |
private Collection<Object> excludeFromIrrelevantToggleableObjects; |
... | ... | |
82 | 84 |
"Initials", entity.getInitials(), SWT.NULL); |
83 | 85 |
text_prefix = formFactory.createTextWithLabelElement(formElement, |
84 | 86 |
"Prefix", entity.getPrefix(), SWT.NULL); |
87 |
time_lifespan = formFactory.createTimePeriodElement(formElement, "Lifespan", entity.getLifespan(), SWT.NULL); |
|
85 | 88 |
text_orcid = formFactory.createOrcidWithLabelElement(formElement, "ORCID", entity.getOrcid(), SWT.NULL); |
86 | 89 |
getLayoutComposite().layout(); |
87 | 90 |
|
... | ... | |
121 | 124 |
getEntity().setSuffix(text_suffix.getText()); |
122 | 125 |
}else if (eventSource == text_orcid) { |
123 | 126 |
getEntity().setOrcid(text_orcid.parseText()); |
127 |
}else if (eventSource == time_lifespan) { |
|
128 |
getEntity().setLifespan(time_lifespan.getTimePeriod()); |
|
124 | 129 |
} |
125 | 130 |
|
126 | 131 |
//if (eventSource != toggleable_cache) { |
Also available in: Unified diff
ref #9022: add lifespan to person detail element