当前页面:
在线文档首页 >
JBoss 3.2.7 common API Documentation 英文版文档
DateEditor (JBoss/Common API) - JBoss 3.2.7 common API Documentation 英文版文档
org.jboss.util.propertyeditor
Class DateEditor
java.lang.Object
java.beans.PropertyEditorSupport
org.jboss.util.propertyeditor.TextPropertyEditorSupport
org.jboss.util.propertyeditor.DateEditor
- All Implemented Interfaces:
- PropertyEditor
- public class DateEditor
- extends TextPropertyEditorSupport
A property editor for Date
.
- Version:
- $Revision: 1.4.2.1 $
- Author:
- Jason Dillon, David Jencks, Scott.Stark@jboss.org
Method Summary |
Object |
getValue()
Returns a Date for the input object converted to a string. |
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 |
DateEditor
public DateEditor()
getValue
public 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
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.