org.jboss.util.propertyeditor
Class DateEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.jboss.util.propertyeditor.TextPropertyEditorSupport (src) 
          extended byorg.jboss.util.propertyeditor.DateEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class DateEditor
extends TextPropertyEditorSupport (src)

A property editor for Date.


Constructor Summary
DateEditor()
           
 
Method Summary
 java.lang.Object getValue()
          Returns a Date for the input object converted to a string.
 
Methods inherited from class org.jboss.util.propertyeditor.TextPropertyEditorSupport (src)
setAsText
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getCustomEditor, getJavaInitializationString, getTags, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateEditor

public DateEditor()
Method Detail

getValue

public java.lang.Object getValue()
Returns a Date for the input object converted to a string. It tries the default date format as specified by the following SimpleDateFormat formats in order: org.jboss.util.propertyeditor.DateEditor.format system property (or MMM d, yyyy, if not specified), EEE MMM d HH:mm:ss z yyyy EEE, d MMM yyyy HH:mm:ss Z

Returns:
a Date object