Project

General

Profile

Download (1.39 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 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
package eu.etaxonomy.taxeditor.ui.section.vocabulary;
11

    
12
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
13
import eu.etaxonomy.cdm.model.common.TermVocabulary;
14
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
16

    
17
/**
18
 * @author l.morris
19
 * @date 20 Dec 2011
20
 *
21
 */
22
public class DefinedTermDetailElement<T extends DefinedTermBase> extends AbstractTermBaseDetailElement<T> {
23
	
24
	/**
25
	 * @param formFactory
26
	 * @param formElement
27
	 */
28
	public DefinedTermDetailElement(CdmFormFactory formFactory,
29
			ICdmFormElement formElement) {
30
		super(formFactory, formElement);
31
	}
32

    
33
	/* (non-Javadoc)
34
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#handleEvent(java.lang.Object)
35
	 */
36
	@Override
37
	public void handleEvent(Object eventSource) {
38
		handleRepresentation(eventSource);
39
	}
40

    
41
	/* (non-Javadoc)
42
	 * @see eu.etaxonomy.taxeditor.ui.section.vocabulary.AbstractTermBaseDetailElement#getVocabularyMarkers()
43
	 */
44
	@Override
45
	public TermVocabulary getVocabulary() {
46
		return getEntity() != null ? getEntity().getVocabulary() : null;
47
	}
48

    
49
}
(2-2/8)