Fixes #2740
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / vocabulary / DefinedTermDetailElement.java
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.Language;
14 import eu.etaxonomy.cdm.model.common.Representation;
15 import eu.etaxonomy.cdm.model.common.TermVocabulary;
16 import eu.etaxonomy.taxeditor.store.CdmStore;
17 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19
20 /**
21 * @author l.morris
22 * @date 20 Dec 2011
23 *
24 */
25 public class DefinedTermDetailElement<T extends DefinedTermBase> extends AbstractTermBaseDetailElement<T> {
26
27 /**
28 * @param formFactory
29 * @param formElement
30 */
31 public DefinedTermDetailElement(CdmFormFactory formFactory,
32 ICdmFormElement formElement) {
33 super(formFactory, formElement);
34 }
35
36 /* (non-Javadoc)
37 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement#handleEvent(java.lang.Object)
38 */
39 @Override
40 public void handleEvent(Object eventSource) {
41 handleRepresentation(eventSource);
42 }
43
44 /* (non-Javadoc)
45 * @see eu.etaxonomy.taxeditor.ui.section.vocabulary.AbstractTermBaseDetailElement#getVocabularyMarkers()
46 */
47 @Override
48 public TermVocabulary getVocabulary() {
49 return getEntity() != null ? getEntity().getVocabulary() : null;
50 }
51
52 }