2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.element
;
12 import eu
.etaxonomy
.cdm
.model
.common
.LSID
;
13 import eu
.etaxonomy
.taxeditor
.l10n
.Messages
;
21 public class LsidWithExceptionLabelElement
extends AbstractUriWithExceptionLabelElement
<LSID
> {
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 exceptionString
= Messages
.LsidWithLabelElement_URL_NOT_SAVED
;
33 public void setParsedText(LSID object
) {
35 super.setText(object
.toString());
43 public LSID
getParsedText() throws Exception
{
44 String uriText
= super.getText();
46 return new LSID(uriText
);