Package org.kuali.rice.krad.web.bind
Class UifCalendarEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.kuali.rice.krad.web.bind.UifDateEditor
org.kuali.rice.krad.web.bind.UifCalendarEditor
- All Implemented Interfaces:
PropertyEditor,Serializable
PropertyEditor converts between date display strings and
java.util.Calendar objects using the
org.kuali.rice.core.api.datetime.DateTimeService.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertToObject(String text) Convert display text tojava.util.Calendarobject using theorg.kuali.rice.core.api.datetime.DateTimeService.This overridden method uses theorg.kuali.rice.core.api.datetime.DateTimeServiceto convert the calendar object to the display string.Methods inherited from class org.kuali.rice.krad.web.bind.UifDateEditor
getDateTimeService, setAsText, verbatimYearMethods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
UifCalendarEditor
public UifCalendarEditor()
-
-
Method Details
-
getAsText
This overridden method uses theorg.kuali.rice.core.api.datetime.DateTimeServiceto convert the calendar object to the display string.- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classUifDateEditor- See Also:
-
convertToObject
Convert display text tojava.util.Calendarobject using theorg.kuali.rice.core.api.datetime.DateTimeService.- Overrides:
convertToObjectin classUifDateEditor- Parameters:
text- the display text- Returns:
- the
java.util.Calendarobject - Throws:
IllegalArgumentException- the illegal argument exception
-