|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.PropertyEditorSupport org.kuali.rice.krad.web.bind.UifDateEditor
public class UifDateEditor
This PropertyEditor converts between date display strings and
java.sql.Date
objects.
Constructor Summary | |
---|---|
UifDateEditor()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.beans.PropertyEditorSupport |
---|
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UifDateEditor()
Method Detail |
---|
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 text
java.sql.Date
object
IllegalArgumentException
- the illegal argument exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |