1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
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.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.ui.section.name;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
import org.eclipse.swt.events.SelectionListener;
|
15
|
|
16
|
import eu.etaxonomy.cdm.model.name.TypeDesignationBase;
|
17
|
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
|
18
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
19
|
import eu.etaxonomy.taxeditor.ui.element.CheckboxElement;
|
20
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
21
|
import eu.etaxonomy.taxeditor.ui.section.supplemental.AbstractReferencedEntityElement;
|
22
|
|
23
|
/**
|
24
|
* <p>Abstract AbstractTypeDesignationElement class.</p>
|
25
|
*
|
26
|
* @author n.hoffmann
|
27
|
* @created May 17, 2010
|
28
|
* @version 1.0
|
29
|
*/
|
30
|
public abstract class AbstractTypeDesignationElement<T extends TypeDesignationBase> extends AbstractReferencedEntityElement<T> {
|
31
|
|
32
|
private static final Logger logger = Logger
|
33
|
.getLogger(AbstractTypeDesignationElement.class);
|
34
|
protected CheckboxElement checkbox_notDesignated;
|
35
|
|
36
|
|
37
|
/**
|
38
|
* <p>Constructor for AbstractTypeDesignationElement.</p>
|
39
|
*
|
40
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
41
|
* @param section a {@link eu.etaxonomy.taxeditor.ui.element.AbstractFormSection} object.
|
42
|
* @param entity a T object.
|
43
|
* @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
|
44
|
* @param style a int.
|
45
|
* @param <T> a T object.
|
46
|
*/
|
47
|
public AbstractTypeDesignationElement(CdmFormFactory formFactory,
|
48
|
AbstractFormSection section, T entity,
|
49
|
SelectionListener removeListener, int style) {
|
50
|
super(formFactory, section, entity, removeListener, style);
|
51
|
}
|
52
|
|
53
|
/** {@inheritDoc} */
|
54
|
@Override
|
55
|
public void createControls(ICdmFormElement formElement, int style) {
|
56
|
checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", false, style);
|
57
|
super.createControls(formElement, style);
|
58
|
}
|
59
|
|
60
|
}
|