859eb72c2505f149c68f7f874e717b9b1916288f
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / description / DescriptionElementDetailElement.java
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
15 import eu.etaxonomy.cdm.model.description.DescriptionElementBase;
16 import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
17 import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
18 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
19 import eu.etaxonomy.taxeditor.ui.section.description.detail.AbstractDetailedDescriptionDetailElement;
20
21 /**
22 * <p>DescriptionElementDetailElement class.</p>
23 *
24 * @author n.hoffmann
25 * @created Mar 5, 2010
26 * @version 1.0
27 */
28 public class DescriptionElementDetailElement extends
29 AbstractCdmDetailElement<DescriptionElementBase> {
30
31
32 private static final Logger logger = Logger
33 .getLogger(DescriptionElementDetailElement.class);
34 private AbstractDetailedDescriptionDetailElement detailElement;
35
36 /**
37 * <p>Constructor for DescriptionElementDetailElement.</p>
38 *
39 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
40 * @param formElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object.
41 * @param style a int.
42 */
43 public DescriptionElementDetailElement(CdmFormFactory cdmFormFactory,
44 ICdmFormElement formElement, int style) {
45 super(cdmFormFactory, formElement);
46 }
47
48 /** {@inheritDoc} */
49 @Override
50 protected void createControls(ICdmFormElement formElement, DescriptionElementBase entity, int style) {
51 detailElement = formFactory.createDetailedDescriptionDetailElement(formElement, entity, style);
52 }
53
54 /** {@inheritDoc} */
55 @Override
56 public void handleEvent(Object eventSource) {
57
58 }
59 }