Moving editor sources back into trunk
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / editor / description / DescriptionFeatureGroupComposite.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
8 */
9
10 package eu.etaxonomy.taxeditor.editor.description;
11
12 import org.apache.log4j.Logger;
13 import org.eclipse.swt.widgets.Composite;
14 import org.eclipse.ui.forms.widgets.TableWrapLayout;
15
16 import eu.etaxonomy.cdm.model.description.Feature;
17 import eu.etaxonomy.cdm.model.description.TaxonDescription;
18 import eu.etaxonomy.taxeditor.editor.GroupComposite;
19 import eu.etaxonomy.taxeditor.editor.GroupCompositeLabel;
20
21 /**
22 * @author p.ciardelli
23 * @created 11.09.2008
24 * @version 1.0
25 */
26 public class DescriptionFeatureGroupComposite extends GroupComposite {
27 private static final Logger logger = Logger
28 .getLogger(DescriptionFeatureGroupComposite.class);
29
30 private TaxonDescription description;
31 private Feature feature;
32
33 public DescriptionFeatureGroupComposite(TaxonDescriptionEditor editor, Composite parent,
34 TaxonDescription description, Feature feature) {
35
36 super(editor, parent);
37
38 this.description = description;
39 this.feature = feature;
40
41 TableWrapLayout tlLayout = new TableWrapLayout();
42 tlLayout.topMargin = 0;
43 tlLayout.leftMargin = 10;
44 setLayout(tlLayout);
45
46 Composite groupCompositeLabel = new GroupCompositeLabel(this, feature.getLabel());
47 }
48
49 public TaxonDescription getDescription() {
50 return description;
51 }
52
53 public Feature getFeature() {
54 return feature;
55 }
56 }