1 // $Id: NamedAreaPropertyEditor.java 8450 2010-03-19 15:12:17Z a.kohlbecker $
3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.cdm
.remote
.editor
;
13 import java
.beans
.PropertyEditorSupport
;
15 import org
.springframework
.stereotype
.Component
;
17 import eu
.etaxonomy
.cdm
.model
.location
.TdwgArea
;
20 * @author a.kohlbecker
22 * TODO only TDWG areas supported for now
25 public class NamedAreaPropertyEditor
extends PropertyEditorSupport
{
27 public void setAsText(String text
) {
28 setValue(TdwgArea
.getAreaByTdwgAbbreviation(text
));