Package org.kuali.rice.krad.web.bind
Class UifTimeEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.kuali.rice.krad.web.bind.UifTimeEditor
- All Implemented Interfaces:
PropertyEditor,Serializable
PropertyEditor converts between time display strings and
java.sql.Time objects- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectconvertToObject(String text) Converts the display text to a time object.Converts the time object to the display string format.protected DateTimeServiceGets the date time service.voidConverts the display string to a time object.Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, setValue, supportsCustomEditor
-
Constructor Details
-
UifTimeEditor
public UifTimeEditor()
-
-
Method Details
-
getAsText
Converts the time object to the display string format.- Specified by:
getAsTextin interfacePropertyEditor- Overrides:
getAsTextin classPropertyEditorSupport- Returns:
- the time object in the display string format or null if it is empty
-
setAsText
Converts the display string to a time object.- Specified by:
setAsTextin interfacePropertyEditor- Overrides:
setAsTextin classPropertyEditorSupport- Throws:
IllegalArgumentException
-
convertToObject
Converts the display text to a time object.- Parameters:
text- the display text- Returns:
- the time object
-
getDateTimeService
Gets the date time service.- Returns:
- the date time service
-