public class UifDateEditor extends PropertyEditorSupport implements Serializable
java.sql.Date objects| Constructor 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. |
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 UifDateEditor()
public String getAsText()
org.kuali.rice.core.api.datetime.DateTimeService to convert
the date object to the display string.getAsText in interface PropertyEditorgetAsText in class PropertyEditorSupportPropertyEditorSupport.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 PropertyEditorsetAsText in class PropertyEditorSupportIllegalArgumentExceptionPropertyEditorSupport.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 exceptionprotected String verbatimYear(String date)
date - Copyright © 2005–2016 The Kuali Foundation. All rights reserved.