public class DateOrDatetimeEditor extends PropertyEditorSupport
| Constructor and Description |
|---|
DateOrDatetimeEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText() |
void |
setAsText(String asString) |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic void setAsText(String asString) throws IllegalArgumentException
setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionShould handle date
Should handle date and time
Should fail on partial date
Should fail on partial date and timepublic String getAsText()
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportShould print date without time
Should print date and time with timeCopyright © 2024 OpenMRS Inc.. All rights reserved.