Revision 61e0ca66
Added by Lorna Morris about 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java | ||
---|---|---|
48 | 48 |
import eu.etaxonomy.cdm.model.agent.Team; |
49 | 49 |
import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase; |
50 | 50 |
import eu.etaxonomy.cdm.model.common.Annotation; |
51 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
|
51 | 52 |
import eu.etaxonomy.cdm.model.common.Credit; |
52 | 53 |
import eu.etaxonomy.cdm.model.common.DefinedTermBase; |
53 | 54 |
import eu.etaxonomy.cdm.model.common.DescriptionElementSource; |
... | ... | |
226 | 227 |
import eu.etaxonomy.taxeditor.ui.section.reference.ReferenceDetailSection; |
227 | 228 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.AnnotationElement; |
228 | 229 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.AnnotationSection; |
230 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.CdmBaseElement; |
|
231 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.CdmBaseSection; |
|
229 | 232 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.CreditElement; |
230 | 233 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.CreditSection; |
231 | 234 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.ExtensionElement; |
... | ... | |
1397 | 1400 |
parentElement.addElement(element); |
1398 | 1401 |
return element; |
1399 | 1402 |
} |
1403 |
|
|
1404 |
/** |
|
1405 |
* @param cdmBaseSection |
|
1406 |
* @param object |
|
1407 |
* @param style |
|
1408 |
* @return |
|
1409 |
*/ |
|
1410 |
public CdmBaseElement createCdmBaseElement(ICdmFormElement parentElement, |
|
1411 |
CdmBase entity, int style) { |
|
1412 |
CdmBaseElement element = new CdmBaseElement(this, parentElement, |
|
1413 |
entity, style); |
|
1414 |
adapt(element); |
|
1415 |
parentElement.addElement(element); |
|
1416 |
return element; |
|
1417 |
} |
|
1418 |
|
|
1400 | 1419 |
|
1401 | 1420 |
/** |
1402 | 1421 |
* <p> |
... | ... | |
1419 | 1438 |
adapt(section); |
1420 | 1439 |
return section; |
1421 | 1440 |
} |
1441 |
|
|
1442 |
/** |
|
1443 |
* @param parent |
|
1444 |
* @param i |
|
1445 |
* @return |
|
1446 |
*/ |
|
1447 |
public CdmBaseSection createCdmBaseSection(ICdmFormElement parentElement, int style) { |
|
1448 |
CdmBaseSection section = new CdmBaseSection(this, parentElement, style); |
|
1449 |
parentElement.addElement(section); |
|
1450 |
adapt(section); |
|
1451 |
return section; |
|
1452 |
} |
|
1422 | 1453 |
|
1423 | 1454 |
/** |
1424 | 1455 |
* <p> |
... | ... | |
2501 | 2532 |
|
2502 | 2533 |
|
2503 | 2534 |
|
2535 |
|
|
2536 |
|
|
2537 |
|
|
2504 | 2538 |
} |
Also available in: Unified diff
Fixes #2572. Fixes #2574. Also simplified SupplementalDataViewer so that everytime the viewer is refreshed the sections are recreated.