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
.name
;
12 import org
.eclipse
.swt
.events
.SelectionListener
;
14 import eu
.etaxonomy
.cdm
.model
.name
.TypeDesignationBase
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractFormSection
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.CheckboxElement
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.supplemental
.AbstractReferencedEntityElement
;
22 * <p>Abstract AbstractTypeDesignationElement class.</p>
25 * @created May 17, 2010
28 public abstract class AbstractTypeDesignationElement
<T
extends TypeDesignationBase
> extends AbstractReferencedEntityElement
<T
> {
30 protected CheckboxElement checkbox_notDesignated
;
34 * <p>Constructor for AbstractTypeDesignationElement.</p>
36 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
37 * @param section a {@link eu.etaxonomy.taxeditor.ui.element.AbstractFormSection} object.
38 * @param entity a T object.
39 * @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
41 * @param <T> a T object.
43 public AbstractTypeDesignationElement(CdmFormFactory formFactory
,
44 AbstractFormSection section
, T entity
,
45 SelectionListener removeListener
, int style
) {
46 super(formFactory
, section
, entity
, removeListener
, style
);
51 public void createControls(ICdmFormElement formElement
, int style
) {
52 checkbox_notDesignated
= formFactory
.createCheckbox(formElement
, "Not Designated", false, style
);
53 super.createControls(formElement
, style
);