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.LSID;
|
13
|
|
14
|
/**
|
15
|
*
|
16
|
* @author pplitzner
|
17
|
* @date Sep 21, 2015
|
18
|
*
|
19
|
*/
|
20
|
public class LsidWithExceptionLabelElement extends AbstractUriWithExceptionLabelElement<LSID> {
|
21
|
|
22
|
protected LsidWithExceptionLabelElement(CdmFormFactory formFactory, ICdmFormElement parentElement,
|
23
|
String labelString, LSID initialObject, Integer textHeight, int style) {
|
24
|
super(formFactory, parentElement, labelString, initialObject, textHeight, style);
|
25
|
}
|
26
|
|
27
|
/**
|
28
|
* {@inheritDoc}
|
29
|
*/
|
30
|
@Override
|
31
|
public void setParsedText(LSID object) {
|
32
|
if(object != null){
|
33
|
super.setText(object.toString());
|
34
|
}
|
35
|
}
|
36
|
|
37
|
/**
|
38
|
* {@inheritDoc}
|
39
|
*/
|
40
|
@Override
|
41
|
public LSID getParsedText() throws Exception {
|
42
|
return new LSID(super.getText());
|
43
|
}
|
44
|
|
45
|
}
|