public class UifDateEditor extends PropertyEditorSupport implements Serializable
java.sql.Date
objectsConstructor and Description |
---|
UifDateEditor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
convertToObject(String text)
Convert display text to
java.sql.Date object using the
org.kuali.rice.core.api.datetime.DateTimeService . |
String |
getAsText()
This overridden method uses the
org.kuali.rice.core.api.datetime.DateTimeService to convert
the date object to the display string. |
protected DateTimeService |
getDateTimeService()
Gets the date time service.
|
void |
setAsText(String text)
This overridden method converts the display string to a
java.sql.Date object using the
org.kuali.rice.core.api.datetime.DateTimeService . |
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
public UifDateEditor()
public String getAsText()
org.kuali.rice.core.api.datetime.DateTimeService
to convert
the date object to the display string.getAsText
in interface PropertyEditor
getAsText
in class PropertyEditorSupport
PropertyEditorSupport.getAsText()
protected DateTimeService getDateTimeService()
public void setAsText(String text) throws IllegalArgumentException
java.sql.Date
object using the
org.kuali.rice.core.api.datetime.DateTimeService
.setAsText
in interface PropertyEditor
setAsText
in class PropertyEditorSupport
IllegalArgumentException
PropertyEditorSupport.setAsText(java.lang.String)
protected Object convertToObject(String text) throws IllegalArgumentException
java.sql.Date
object using the
org.kuali.rice.core.api.datetime.DateTimeService
.text
- the display textjava.sql.Date
objectIllegalArgumentException
- the illegal argument exceptionCopyright © 2005–2016 The Kuali Foundation. All rights reserved.