Project

General

Profile

Download (1.02 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.cdm.vaadin.component.common;
10

    
11
import eu.etaxonomy.cdm.model.common.TimePeriod;
12

    
13
/**
14
 * @author a.kohlbecker
15
 * @since May 17, 2018
16
 *
17
 */
18
public class TimePeriodField extends AbstractTimePeriodField<TimePeriod> {
19

    
20
    private static final long serialVersionUID = -8399562684225562651L;
21

    
22
    /**
23
     * {@inheritDoc}
24
     */
25
    @Override
26
    public Class<? extends TimePeriod> getType() {
27
        return TimePeriod.class;
28
    }
29

    
30
    /**
31
     *
32
     */
33
    public TimePeriodField() {
34
        super();
35
    }
36

    
37
    /**
38
     * @param string
39
     */
40
    public TimePeriodField(String string) {
41
        super(string);
42
    }
43

    
44
    /**
45
     * {@inheritDoc}
46
     */
47
    @Override
48
    protected TimePeriod newModelInstance() {
49

    
50
        return TimePeriod.NewInstance();
51
    }
52

    
53
}
(7-7/8)