3 * Copyright (C) 2014 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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
12 import org
.eclipse
.swt
.SWT
;
13 import org
.eclipse
.swt
.events
.SelectionListener
;
15 import eu
.etaxonomy
.cdm
.model
.molecular
.Sequence
;
16 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
17 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.compatibility
.ICdmFormElement
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractFormSection
;
19 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
20 import eu
.etaxonomy
.taxeditor
.ui
.element
.TextWithLabelElement
;
21 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractEntityCollectionElement
;
22 import eu
.etaxonomy
.taxeditor
.ui
.selection
.EntitySelectionElement
;
29 public class SequenceReferenceCollectionDetailElement
extends AbstractEntityCollectionElement
<Sequence
>{
31 protected EntitySelectionElement
<Reference
> selection_reference
;
32 protected TextWithLabelElement text_referenceDetail
;
36 * Constructor for AbstractReferencedEntityElement.
40 * a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
43 * a {@link eu.etaxonomy.taxeditor.ui.element.AbstractFormSection}
47 * @param removeListener
48 * a {@link org.eclipse.swt.events.SelectionListener} object.
54 public SequenceReferenceCollectionDetailElement(CdmFormFactory formFactory
,
55 AbstractFormSection section
, Sequence entity
,
56 SelectionListener removeListener
, int style
) {
57 super(formFactory
, section
, entity
, removeListener
, null, style
);
64 * eu.etaxonomy.taxeditor.forms.section.AbstractEntityCollectionElement#
65 * createControls(eu.etaxonomy.taxeditor.forms.ICdmFormElement, int)
69 public void createControls(ICdmFormElement formElement
, int style
) {
70 selection_reference
= formFactory
71 .createSelectionElement(Reference
.class,
72 getConversationHolder(), formElement
, "Reference",
73 null, EntitySelectionElement
.ALL
, style
);
74 text_referenceDetail
= formFactory
.createTextWithLabelElement(
75 formElement
, "Reference Detail", null, SWT
.NULL
);
87 public void setEntity(Sequence entity
) {
90 // selection_reference.setEntity(entity.getCitation());
91 // text_referenceDetail.setText(entity.getCitationMicroReference());
95 * @see eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement#handleEvent(java.lang.Object)
98 public void handleEvent(Object eventSource
) {
99 // TODO Auto-generated method stub