Package ubic.gemma.web.propertyeditor
Class TaxonPropertyEditor
- java.lang.Object
-
- java.beans.PropertyEditorSupport
-
- ubic.gemma.web.propertyeditor.TaxonPropertyEditor
-
- All Implemented Interfaces:
PropertyEditor
public class TaxonPropertyEditor extends PropertyEditorSupport
Used to convert Taxon from and into strings for display in forms. Either by primary key (id), common or scientific name.- Author:
- pavlidis
-
-
Constructor Summary
Constructors Constructor Description TaxonPropertyEditor(TaxonService taxonService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAsText()
void
setAsText(String text)
Allow us to convert from either an id or the scientific name.-
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
-
-
-
Constructor Detail
-
TaxonPropertyEditor
public TaxonPropertyEditor(TaxonService taxonService)
-
-
Method Detail
-
getAsText
public String getAsText()
- Specified by:
getAsText
in interfacePropertyEditor
- Overrides:
getAsText
in classPropertyEditorSupport
-
setAsText
public void setAsText(String text) throws IllegalArgumentException
Allow us to convert from either an id or the scientific name.- Specified by:
setAsText
in interfacePropertyEditor
- Overrides:
setAsText
in classPropertyEditorSupport
- Parameters:
text
- text- Throws:
IllegalArgumentException
-
-