Project

General

Profile

Download (1.06 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.ui.element;
12

    
13
import eu.etaxonomy.cdm.model.common.LSID;
14

    
15
/**
16
 *
17
 * @author pplitzner
18
 * @date Sep 21, 2015
19
 *
20
 */
21
public class LsidWithExceptionLabelElement extends AbstractUriWithExceptionLabelElement<LSID> {
22

    
23
    protected LsidWithExceptionLabelElement(CdmFormFactory formFactory, ICdmFormElement parentElement,
24
            String labelString, LSID initialObject, Integer textHeight, int style) {
25
        super(formFactory, parentElement, labelString, initialObject, textHeight, style);
26
    }
27

    
28
	/**
29
	 * {@inheritDoc}
30
	 */
31
	@Override
32
	public void setParsedText(LSID object) {
33
		if(object != null){
34
			super.setText(object.toString());
35
		}
36
	}
37

    
38
	/**
39
	 * {@inheritDoc}
40
	 */
41
	@Override
42
	public LSID getParsedText() throws Exception {
43
            return new LSID(super.getText());
44
	}
45

    
46
}
(29-29/42)