Project

General

Profile

Download (1.99 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
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.TimePeriod;
14
import eu.etaxonomy.cdm.model.common.VerbatimTimePeriod;
15

    
16
/**
17
 * @author k.luther
18
 * @since 15.05.2018
19
 *
20
 */
21
public class VerbatimTimePeriodElement extends TimePeriodElement {
22

    
23

    
24

    
25
    /**
26
     * <p>
27
     * Constructor for TimePeriodElement.
28
     * </p>
29
     *
30
     * @param style
31
     *            a int.
32
     * @param formFactory
33
     *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
34
     *            object.
35
     * @param parentElement
36
     *            a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement}
37
     *            object.
38
     * @param labelString
39
     *            a {@link java.lang.String} object.
40
     * @param timePeriod
41
     *            a {@link eu.etaxonomy.cdm.model.common.TimePeriod} object.
42
     */
43
    public VerbatimTimePeriodElement(CdmFormFactory formFactory,
44
            ICdmFormElement parentElement, String labelString,
45
            VerbatimTimePeriod timePeriod, final int style) {
46
        super(formFactory, parentElement);
47

    
48
        label = formFactory.createLabel(getLayoutComposite(), labelString);
49

    
50
        addControl(label);
51

    
52
        section_dateDetails = formFactory.createVerbatimDateDetailSection(this,
53
                Section.TWISTIE);
54
        addControl(section_dateDetails);
55

    
56
        setTimePeriod(timePeriod);
57

    
58
        formFactory.addPropertyChangeListener(this);
59

    
60

    
61

    
62
    }
63

    
64
    /**
65
     * <p>
66
     * Setter for the field <code>timePeriod</code>.
67
     * </p>
68
     *
69
     * @param timePeriod
70
     *            the timePeriod to set
71
     */
72
    @Override
73
    public void setTimePeriod(TimePeriod timePeriod) {
74
        super.setTimePeriod(timePeriod);
75

    
76
    }
77

    
78

    
79

    
80

    
81
}
(47-47/47)