InternationalFormatter that does its
formatting by way of an instance of java.text.DateFormat.Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
java.text.DateFormat
| Access | Constructor and Description |
|---|---|
| public | |
| public | DateFormatter(DateFormat
Format used to dictate legal values format)Returns a DateFormatter configured with the specified
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | adjustValue(Object value, Map<?, ?> attributes, Object key, int direction)
Overrides javax. Adjusts the Date if FieldPosition identifies a known calendar field. |
| pack-priv Object | getAdjustField(int start, Map<?, ?> attributes)
Overrides javax. Returns the field that will be adjusted by adjustValue. |
| private Calendar | getCalendar()
Returns the Calendar that |
| pack-priv boolean | getSupportsIncrement()
Overrides javax. Returns true, as DateFormatterFilter will support incrementing/decrementing of the value. |
| public void | setFormat(DateFormat
DateFormat instance used for converting from/to Strings format)Sets the format that dictates the legal values that can be edited and displayed. |
| DateFormatter | back to summary |
|---|---|
| public DateFormatter() This is shorthand for
| |
| DateFormatter | back to summary |
|---|---|
| public DateFormatter(DateFormat format) Returns a DateFormatter configured with the specified
| |
| adjustValue | back to summary |
|---|---|
| pack-priv Object adjustValue(Object value, Map<?, ?> attributes, Object key, int direction) throws BadLocationException, ParseException Overrides javax. Adjusts the Date if FieldPosition identifies a known calendar field. | |
| getAdjustField | back to summary |
|---|---|
| pack-priv Object getAdjustField(int start, Map<?, ?> attributes) Overrides javax. Returns the field that will be adjusted by adjustValue. | |
| getCalendar | back to summary |
|---|---|
| private Calendar getCalendar() Returns the Calendar that | |
| getSupportsIncrement | back to summary |
|---|---|
| pack-priv boolean getSupportsIncrement() Overrides javax. Returns true, as DateFormatterFilter will support incrementing/decrementing of the value. | |
| setFormat | back to summary |
|---|---|
| public void setFormat(DateFormat format) Sets the format that dictates the legal values that can be edited and displayed.
If you have used the nullary constructor the value of this property
will be determined for the current locale by way of the
| |