2 * Copyright (C) 2009 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.
9 package eu
.etaxonomy
.taxeditor
.ui
.section
.vocabulary
;
11 import eu
.etaxonomy
.cdm
.model
.term
.TermVocabulary
;
12 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
13 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
14 import eu
.etaxonomy
.taxeditor
.ui
.element
.UriWithLabelElement
;
20 public class TermVocabularyDetailElement
extends AbstractTermBaseDetailElement
<TermVocabulary
> {
22 private UriWithLabelElement uri_uriTermSource
;
23 public TermVocabularyDetailElement(CdmFormFactory formFactory
,
24 ICdmFormElement formElement
) {
25 super(formFactory
, formElement
);
29 protected void createControls(ICdmFormElement formElement
,
30 TermVocabulary entity
, int style
) {
32 super.createControls(formElement
, entity
, style
);
33 uri_uriTermSource
= formFactory
.createUriWithLabelElement(formElement
, "Term Source URI", getEntity().getTermSourceUri(), style
);
37 public void handleEvent(Object eventSource
) {
38 super.handleEvent(eventSource
);
40 if (eventSource
== uri_uriTermSource
) {
41 getEntity().setTermSourceUri(uri_uriTermSource
.parseText());
46 public void fillFields() {