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
.ui
.section
.name
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.swt
.events
.SelectionListener
;
16 import eu
.etaxonomy
.cdm
.model
.name
.TypeDesignationBase
;
17 import eu
.etaxonomy
.taxeditor
.ui
.forms
.AbstractFormSection
;
18 import eu
.etaxonomy
.taxeditor
.ui
.forms
.CdmFormFactory
;
19 import eu
.etaxonomy
.taxeditor
.ui
.forms
.CheckboxElement
;
20 import eu
.etaxonomy
.taxeditor
.ui
.forms
.ICdmFormElement
;
21 import eu
.etaxonomy
.taxeditor
.ui
.section
.supplemental
.AbstractReferencedEntityElement
;
24 * <p>Abstract AbstractTypeDesignationElement class.</p>
27 * @created May 17, 2010
30 public abstract class AbstractTypeDesignationElement
<T
extends TypeDesignationBase
> extends AbstractReferencedEntityElement
<T
> {
32 private static final Logger logger
= Logger
33 .getLogger(AbstractTypeDesignationElement
.class);
34 protected CheckboxElement checkbox_notDesignated
;
38 * <p>Constructor for AbstractTypeDesignationElement.</p>
40 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
41 * @param section a {@link eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection} object.
42 * @param entity a T object.
43 * @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
45 * @param <T> a T object.
47 public AbstractTypeDesignationElement(CdmFormFactory formFactory
,
48 AbstractFormSection section
, T entity
,
49 SelectionListener removeListener
, int style
) {
50 super(formFactory
, section
, entity
, removeListener
, style
);
55 public void createControls(ICdmFormElement formElement
, int style
) {
56 checkbox_notDesignated
= formFactory
.createCheckbox(formElement
, "Not Designated", false, style
);
57 super.createControls(formElement
, style
);