refactoring of package names for consistency
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / element / UriWithLabelElement.java
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 java.net.URI;
14 import java.net.URISyntaxException;
15
16
17 /**
18 * @author n.hoffmann
19 * @created Dec 20, 2010
20 * @version 1.0
21 */
22 public class UriWithLabelElement extends TextWithLabelElement {
23
24 /**
25 * @param formFactory
26 * @param parentElement
27 * @param labelString
28 * @param initialText
29 * @param textHeight
30 * @param style
31 */
32 protected UriWithLabelElement(CdmFormFactory formFactory,
33 ICdmFormElement parentElement, String labelString,
34 URI initialUri, Integer textHeight, int style) {
35 super(formFactory, parentElement, labelString, null, textHeight, style);
36 setUri(initialUri);
37 }
38
39 /**
40 *
41 */
42 public void setUri(URI uri) {
43 if(uri != null){
44 super.setText(uri.toString());
45 }
46 }
47
48 public URI getUri() throws URISyntaxException{
49 return new URI(super.getText());
50 }
51
52 }