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, supportsCustomEditor
public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
Copyright © 2024 OpenMRS Inc.. All rights reserved.