Merge branch 'release/5.19.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / TimePeriodElement.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 package eu.etaxonomy.taxeditor.ui.element;
10
11 import org.eclipse.ui.forms.widgets.ExpandableComposite;
12
13 import eu.etaxonomy.cdm.model.common.TimePeriod;
14
15 /**
16 * TimePeriodElement class.
17 *
18 * @author n.hoffmann
19 * @created Nov 17, 2009
20 */
21 public class TimePeriodElement
22 extends TimePeriodElementBase<TimePeriod> {
23
24 public TimePeriodElement(CdmFormFactory formFactory, ICdmFormElement parentElement, String labelString,
25 TimePeriod timePeriod, int style) {
26 super(formFactory, parentElement, labelString, timePeriod, style);
27 }
28
29 @Override
30 protected DateDetailSection<TimePeriod> createDateDetailSection() {
31 return formFactory.createDateDetailSection(this,
32 ExpandableComposite.TWISTIE);
33 }
34
35 }