T - the openmrs object to convert to and frompublic abstract class OpenmrsPropertyEditor<T extends OpenmrsObject> extends PropertyEditorSupport
PropertyEditor for OpenmrsObject.
When setting the value from text it will try to get the OpenmrsObject via its id
and if that fails using its uuid.
OpenmrsObject| Constructor and Description |
|---|
OpenmrsPropertyEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText() |
protected abstract T |
getObjectById(Integer id) |
protected abstract T |
getObjectByUuid(String uuid) |
void |
setAsText(String text) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionpublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportCopyright © 2024 OpenMRS Inc.. All rights reserved.