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 SummaryConstructors Constructor Description TaxonPropertyEditor(ubic.gemma.persistence.service.genome.taxon.TaxonService taxonService)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAsText()voidsetAsText(String text)Allow us to convert from either an id or the scientific name.- 
Methods inherited from class java.beans.PropertyEditorSupportaddPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
 
- 
 
- 
- 
- 
Method Detail- 
getAsTextpublic String getAsText() - Specified by:
- getAsTextin interface- PropertyEditor
- Overrides:
- getAsTextin class- PropertyEditorSupport
 
 - 
setAsTextpublic void setAsText(String text) throws IllegalArgumentException Allow us to convert from either an id or the scientific name.- Specified by:
- setAsTextin interface- PropertyEditor
- Overrides:
- setAsTextin class- PropertyEditorSupport
- Parameters:
- text- text
- Throws:
- IllegalArgumentException
 
 
- 
 
-