public class UifDateTimeEditor extends PropertyEditorSupport implements Serializable
| Constructor and Description |
|---|
UifDateTimeEditor() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAsText() |
protected DateTimeService |
getDateTimeService()
Returns the
DateTimeService. |
void |
setAsText(String text)
This implementation converts the
Date display string to a DateTime object using the
DateTimeService. |
protected String |
verbatimYear(String date)
For a given user input date, this method returns the exact string the
user entered after the last slash.
|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditorpublic UifDateTimeEditor()
public String getAsText()
This implementation uses the DateTimeService to convert the DateTime object to a
Timestamp display string.
getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportpublic void setAsText(String text) throws IllegalArgumentException
Date display string to a DateTime object using the
DateTimeService.setAsText in interface PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionprotected String verbatimYear(String date)
date - the date to processprotected DateTimeService getDateTimeService()
DateTimeService.DateTimeServiceCopyright © 2005–2014 The Kuali Foundation. All rights reserved.