- added elements for Sequence/Amplification/SingleRead DetailsView
[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.TermVocabulary;
14 import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
15 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
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 }