1 |
ae4ea023
|
Katja Luther
|
/**
|
2 |
|
|
* Copyright (C) 2018 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.Section;
|
12 |
|
|
|
13 |
|
|
import eu.etaxonomy.cdm.model.common.VerbatimTimePeriod;
|
14 |
|
|
|
15 |
|
|
/**
|
16 |
|
|
* @author k.luther
|
17 |
|
|
* @since 15.05.2018
|
18 |
|
|
*
|
19 |
|
|
*/
|
20 |
943d4d5e
|
Andreas Müller
|
public class VerbatimTimePeriodElement
|
21 |
|
|
extends TimePeriodElementBase<VerbatimTimePeriod> {
|
22 |
ae4ea023
|
Katja Luther
|
|
23 |
943d4d5e
|
Andreas Müller
|
|
24 |
|
|
public VerbatimTimePeriodElement(CdmFormFactory formFactory, ICdmFormElement parentElement, String labelString,
|
25 |
|
|
VerbatimTimePeriod timePeriod, int style) {
|
26 |
|
|
super(formFactory, parentElement, labelString, timePeriod, style);
|
27 |
|
|
}
|
28 |
ae4ea023
|
Katja Luther
|
|
29 |
943d4d5e
|
Andreas Müller
|
@Override
|
30 |
291c69d6
|
Andreas Müller
|
protected DateDetailSection<VerbatimTimePeriod> createDateDetailSection() {
|
31 |
943d4d5e
|
Andreas Müller
|
return formFactory.createVerbatimDateDetailSection(this,
|
32 |
|
|
Section.TWISTIE);
|
33 |
|
|
}
|
34 |
ae4ea023
|
Katja Luther
|
|
35 |
|
|
/**
|
36 |
|
|
* <p>
|
37 |
|
|
* Setter for the field <code>timePeriod</code>.
|
38 |
|
|
* </p>
|
39 |
|
|
*
|
40 |
|
|
* @param timePeriod
|
41 |
|
|
* the timePeriod to set
|
42 |
|
|
*/
|
43 |
|
|
@Override
|
44 |
943d4d5e
|
Andreas Müller
|
public void setTimePeriod(VerbatimTimePeriod timePeriod) {
|
45 |
ae4ea023
|
Katja Luther
|
super.setTimePeriod(timePeriod);
|
46 |
|
|
}
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
}
|