org.kuali.rice.krad.web.bind
Class UifTimeEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.kuali.rice.krad.web.bind.UifTimeEditor
All Implemented Interfaces:
PropertyEditor, Serializable

public class UifTimeEditor
extends PropertyEditorSupport
implements Serializable

PropertyEditor converts between time display strings and java.sql.Time objects

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Constructor Summary
UifTimeEditor()
           
 
Method Summary
protected  Object convertToObject(String text)
          Converts the display text to a time object.
 String getAsText()
          Converts the time object to the display string format.
protected  DateTimeService getDateTimeService()
          Gets the date time service.
 void setAsText(String text)
          Converts 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UifTimeEditor

public UifTimeEditor()
Method Detail

getAsText

public String getAsText()
Converts the time object to the display string format.

Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
the time object in the display string format or null if it is empty

setAsText

public void setAsText(String text)
               throws IllegalArgumentException
Converts the display string to a time object.

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Throws:
IllegalArgumentException

convertToObject

protected Object convertToObject(String text)
Converts the display text to a time object.

Parameters:
text - the display text
Returns:
the time object

getDateTimeService

protected DateTimeService getDateTimeService()
Gets the date time service.

Returns:
the date time service


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.