Project

General

Profile

Download (1.91 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9

    
10
package eu.etaxonomy.taxeditor.ui.section.name;
11

    
12
import org.eclipse.swt.events.SelectionListener;
13

    
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.AbstractSourcedEntityBaseElement;
20

    
21
/**
22
 * <p>Abstract AbstractTypeDesignationElement class.</p>
23
 *
24
 * @author n.hoffmann
25
 * @created May 17, 2010
26
 * @version 1.0
27
 */
28
public abstract class AbstractTypeDesignationElement<T extends TypeDesignationBase> extends AbstractSourcedEntityBaseElement<T> {
29

    
30
	protected CheckboxElement checkbox_notDesignated;
31

    
32

    
33
	/**
34
	 * <p>Constructor for AbstractTypeDesignationElement.</p>
35
	 *
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.
40
	 * @param style a int.
41
	 * @param <T> a T object.
42
	 */
43
	public AbstractTypeDesignationElement(CdmFormFactory formFactory,
44
			AbstractFormSection section, T entity,
45
			SelectionListener removeListener, int style) {
46
		super(formFactory, section, entity, removeListener, style);
47
	}
48

    
49
	/** {@inheritDoc} */
50
	@Override
51
	public void createControls(ICdmFormElement formElement, int style) {
52
		checkbox_notDesignated = formFactory.createCheckbox(formElement, "Not Designated", false, style);
53
		super.createControls(formElement, style);
54
	}
55

    
56
}
(1-1/21)