Project

General

Profile

Download (2.42 KB) Statistics
| Branch: | Tag: | Revision:
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.section.description;
12

    
13
import org.apache.log4j.Logger;
14
import org.eclipse.swt.events.SelectionListener;
15

    
16
import eu.etaxonomy.cdm.model.reference.Reference;
17
import eu.etaxonomy.taxeditor.forms.AbstractFormSection;
18
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
19
import eu.etaxonomy.taxeditor.forms.CdmFormFactory.SelectionType;
20
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
21
import eu.etaxonomy.taxeditor.forms.selection.ReferenceSelectionElement;
22
import eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement;
23

    
24
/**
25
 * <p>DescriptionSourceElement class.</p>
26
 *
27
 * @author n.hoffmann
28
 * @created Mar 18, 2010
29
 * @version 1.0
30
 */
31
public class DescriptionSourceElement extends AbstractEntityCollectionElement<Reference> {
32

    
33

    
34
	private static final Logger logger = Logger
35
			.getLogger(DescriptionSourceElement.class);
36
	private ReferenceSelectionElement selection_descriptionSource;
37

    
38
	/**
39
	 * <p>Constructor for DescriptionSourceElement.</p>
40
	 *
41
	 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
42
	 * @param formElement a {@link eu.etaxonomy.taxeditor.forms.AbstractFormSection} object.
43
	 * @param element a {@link eu.etaxonomy.cdm.model.reference.ReferenceBase} object.
44
	 * @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
45
	 * @param style a int.
46
	 */
47
	public DescriptionSourceElement(CdmFormFactory cdmFormFactory,
48
			AbstractFormSection formElement, Reference element,
49
			SelectionListener removeListener, int style) {
50
		super(cdmFormFactory, formElement, element, removeListener, null, style);
51
		// TODO Auto-generated constructor stub
52
	}
53
	
54
	/** {@inheritDoc} */
55
	@Override
56
	public void createControls(ICdmFormElement element, int style) {
57
		selection_descriptionSource = (ReferenceSelectionElement) formFactory.createSelectionElement(SelectionType.REFERENCE, getConversationHolder(), element, "Description Source", null, style);
58
	}
59

    
60
	/** {@inheritDoc} */
61
	@Override
62
	public void setEntity(Reference element) {
63
		selection_descriptionSource.setEntity(element);
64
	}
65

    
66
	/** {@inheritDoc} */
67
	@Override
68
	public void handleEvent(Object eventSource) {
69
		// TODO Auto-generated method stub
70
		
71
	}
72
}
(10-10/24)