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, supportsCustomEditor
public void setAsText(String asString) throws IllegalArgumentException
setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
Should handle date
Should handle date and time
Should fail on partial date
Should fail on partial date and time
public String getAsText()
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
Should print date without time
Should print date and time with time
Copyright © 2024 OpenMRS Inc.. All rights reserved.