public class DateFormatter extends InternationalFormatter
DateFormatter is an InternationalFormatter
that implements value to string and string to value conversion via
an instance of DateFormat.| Constructor and Description |
|---|
DateFormatter()
Creates a new instance using the default
DateFormat object
returned by DateFormat.getDateInstance(). |
DateFormatter(DateFormat format)
Creates a new instance of
DateFormatter using the
specified DateFormat |
| Modifier and Type | Method and Description |
|---|---|
void |
setFormat(DateFormat format)
Sets the format that is used by this
DateFormatter. |
clone, getActions, getFields, getFormat, getMaximum, getMinimum, install, setFormat, setMaximum, setMinimum, stringToValue, valueToStringgetAllowsInvalid, getCommitsOnValidEdit, getDocumentFilter, getOverwriteMode, getValueClass, setAllowsInvalid, setCommitsOnValidEdit, setOverwriteMode, setValueClassgetFormattedTextField, getNavigationFilter, invalidEdit, setEditValid, uninstallpublic DateFormatter()
DateFormat object
returned by DateFormat.getDateInstance().public DateFormatter(DateFormat format)
DateFormatter using the
specified DateFormatformat - the DateFormat to usepublic void setFormat(DateFormat format)
DateFormatter.format - the DateFormat to use