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, supportsCustomEditor
public UifDateTimeEditor()
public String getAsText()
This implementation uses the DateTimeService
to convert the DateTime
object to a
Timestamp
display string.
getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
public void setAsText(String text) throws IllegalArgumentException
Date
display string to a DateTime
object using the
DateTimeService
.setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
protected String verbatimYear(String date)
date
- the date to processprotected DateTimeService getDateTimeService()
DateTimeService
.DateTimeService
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.