3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.section
.description
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.swt
.events
.SelectionListener
;
16 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationBase
;
17 import eu
.etaxonomy
.taxeditor
.forms
.AbstractFormSection
;
18 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
;
19 import eu
.etaxonomy
.taxeditor
.forms
.CdmFormFactory
.SelectionType
;
20 import eu
.etaxonomy
.taxeditor
.forms
.ICdmFormElement
;
21 import eu
.etaxonomy
.taxeditor
.forms
.selection
.AbstractSelectionElement
;
22 import eu
.etaxonomy
.taxeditor
.section
.AbstractEntityCollectionElement
;
25 * <p>DerivedUnitElement class.</p>
28 * @created Sep 16, 2010
31 public class DerivedUnitElement
extends AbstractEntityCollectionElement
<SpecimenOrObservationBase
> {
34 private static final Logger logger
= Logger
35 .getLogger(DerivedUnitElement
.class);
36 private AbstractSelectionElement selection_derivedUnit
;
39 * <p>Constructor for DerivedUnitElement.</p>
41 * @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
42 * @param section a {@link eu.etaxonomy.taxeditor.forms.AbstractFormSection} object.
43 * @param entity a {@link eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase} object.
44 * @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
47 public DerivedUnitElement(CdmFormFactory formFactory
,
48 AbstractFormSection section
, SpecimenOrObservationBase entity
,
49 SelectionListener removeListener
, int style
) {
50 super(formFactory
, section
, entity
, removeListener
, null, style
);
54 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#createControls(eu.etaxonomy.taxeditor.forms.ICdmFormElement, int)
58 public void createControls(ICdmFormElement element
, int style
) {
59 selection_derivedUnit
= formFactory
.createSelectionElement(SelectionType
.DERIVED_UNIT
, getConversationHolder(), element
, "Specimen", null, style
);
63 * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#handleEvent(java.lang.Object)
67 public void handleEvent(Object eventSource
) {
68 // TODO Auto-generated method stub
74 public void setEntity(SpecimenOrObservationBase entity
) {
75 // TODO Auto-generated method stub