AT: committing CDMLIB to Branch post Merge
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / editor / NamedAreaPropertyEditor.java
1 // $Id: NamedAreaPropertyEditor.java 8450 2010-03-19 15:12:17Z a.kohlbecker $
2 /**
3 * Copyright (C) 2009 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.cdm.remote.editor;
12
13 import java.beans.PropertyEditorSupport;
14
15 import org.springframework.stereotype.Component;
16
17 import eu.etaxonomy.cdm.model.location.TdwgArea;
18
19 /**
20 * @author a.kohlbecker
21 * @date 30.06.2009
22 * TODO only TDWG areas supported for now
23 */
24 @Component
25 public class NamedAreaPropertyEditor extends PropertyEditorSupport {
26
27 public void setAsText(String text) {
28 setValue(TdwgArea.getAreaByTdwgAbbreviation(text));
29 }
30 }