ref #7421 continue refactor verbatim date sections and elements
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / DateDetailSection.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.ui.element;
11
12 import eu.etaxonomy.cdm.model.common.TimePeriod;
13 import eu.etaxonomy.cdm.strategy.parser.TimePeriodParser;
14
15 /**
16 * <p>
17 * DateDetailSection class.
18 * </p>
19 *
20 * @author n.hoffmann
21 * @created Mar 31, 2010
22 */
23 public class DateDetailSection extends DateDetailSectionBase<TimePeriod> {
24
25 protected DateDetailSection(CdmFormFactory formFactory,
26 ICdmFormElement parentElement, int style) {
27 super(formFactory, parentElement, style);
28 }
29
30 protected TimePeriod newInstance(){
31 return TimePeriod.NewInstance();
32 }
33
34 protected TimePeriod parseNewInstance() {
35 TimePeriod result = TimePeriodParser.parseString(getText_parseText().getText());
36 return result;
37 }
38
39 }