2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.derivedUnit
;
12 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
13 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivedUnit
;
14 import eu
.etaxonomy
.cdm
.model
.occurrence
.DeterminationEvent
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
17 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractEntityCollectionSection
;
20 * <p>DeterminationEventDetailSection class.</p>
23 * @created Oct 13, 2010
26 public abstract class PreservedSpecimenAbstractDeterminationEventDetailSection
extends
27 AbstractEntityCollectionSection
<DerivedUnit
, DeterminationEvent
> {
32 * @param parentElement
36 public PreservedSpecimenAbstractDeterminationEventDetailSection(CdmFormFactory formFactory
,
37 ConversationHolder conversation
, ICdmFormElement parentElement
,
38 String title
, int style
) {
39 super(formFactory
, conversation
, parentElement
, title
, style
);
43 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#createNewElement()
47 public DeterminationEvent
createNewElement() {
48 DeterminationEvent instance
= DeterminationEvent
.NewInstance();
49 instance
.setIdentifiedUnit(getEntity());
54 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#addElement(eu.etaxonomy.cdm.model.common.IVersionableEntity)
58 public void addElement(DeterminationEvent determination
) {
59 getEntity().addDetermination(determination
);
63 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#removeElement(eu.etaxonomy.cdm.model.common.IVersionableEntity)
67 public void removeElement(DeterminationEvent determination
) {
68 getEntity().removeDetermination(determination
);
72 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getEmptyString()
76 public String
getEmptyString() {
77 return "No determinations yet.";