Project

General

Profile

Download (2.24 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.ui.section.description;
12

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

    
16
import eu.etaxonomy.cdm.model.description.Scope;
17
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade;
18
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade.TermComboType;
19
import eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection;
20
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
21
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
22
import eu.etaxonomy.taxeditor.ui.term.ScopeComboElement;
23

    
24
/**
25
 * <p>ScopeElement class.</p>
26
 *
27
 * @author n.hoffmann
28
 * @created Mar 18, 2010
29
 * @version 1.0
30
 */
31
public class ScopeElement extends AbstractEntityCollectionElement<Scope> {
32
	
33
	private static final Logger logger = Logger.getLogger(ScopeElement.class);
34
	private ScopeComboElement combo_scope;
35

    
36
	/**
37
	 * <p>Constructor for ScopeElement.</p>
38
	 *
39
	 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
40
	 * @param section a {@link eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection} object.
41
	 * @param element a {@link eu.etaxonomy.cdm.model.description.Scope} object.
42
	 * @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
43
	 * @param style a int.
44
	 */
45
	public ScopeElement(CdmFormFactoryFacade cdmFormFactory,
46
			AbstractFormSection section, Scope element,
47
			SelectionListener removeListener, int style) {
48
		super(cdmFormFactory, section, element, removeListener, null, style);
49
	}
50

    
51
	/** {@inheritDoc} */
52
	@Override
53
	public void setEntity(Scope entity) {
54
		this.entity = entity;
55
		combo_scope.setSelection(entity);
56
	}
57

    
58
	/** {@inheritDoc} */
59
	@Override
60
	public void createControls(ICdmFormElement element, int style) {
61
		combo_scope = (ScopeComboElement) formFactory.createTermComboElement(TermComboType.SCOPE, element, "Scope", null, style);
62
	}
63

    
64
	/** {@inheritDoc} */
65
	@Override
66
	public void handleEvent(Object eventSource) {
67
		
68
	}
69

    
70

    
71
}
(19-19/24)