| Package | Description |
|---|---|
| java.text | |
| java.time.format |
Provides classes to print and parse dates and times.
|
| javax.swing | |
| javax.swing.text |
| Modifier and Type | Class and Description |
|---|---|
class |
ChoiceFormat
A
ChoiceFormat allows you to attach a format to a range of numbers. |
class |
DateFormat
DateFormat is an abstract class for date/time formatting subclasses which
formats and parses dates or time in a language-independent manner. |
class |
DecimalFormat
DecimalFormat is a concrete subclass of
NumberFormat that formats decimal numbers. |
class |
MessageFormat
MessageFormat provides a means to produce concatenated
messages in a language-neutral way. |
class |
NumberFormat
NumberFormat is the abstract base class for all number
formats. |
class |
SimpleDateFormat
SimpleDateFormat is a concrete class for formatting and
parsing dates in a locale-sensitive manner. |
| Modifier and Type | Method and Description |
|---|---|
Format[] |
MessageFormat.getFormats()
Gets the formats used for the format elements in the
previously set pattern string.
|
Format[] |
MessageFormat.getFormatsByArgumentIndex()
Gets the formats used for the values passed into
format methods or returned from parse
methods. |
| Modifier and Type | Method and Description |
|---|---|
void |
MessageFormat.setFormat(int formatElementIndex,
Format newFormat)
Sets the format to use for the format element with the given
format element index within the previously set pattern string.
|
void |
MessageFormat.setFormatByArgumentIndex(int argumentIndex,
Format newFormat)
Sets the format to use for the format elements within the
previously set pattern string that use the given argument
index.
|
void |
MessageFormat.setFormats(Format[] newFormats)
Sets the formats to use for the format elements in the
previously set pattern string.
|
void |
MessageFormat.setFormatsByArgumentIndex(Format[] newFormats)
Sets the formats to use for the values passed into
format methods or returned from parse
methods. |
| Modifier and Type | Method and Description |
|---|---|
Format |
DateTimeFormatter.toFormat()
Returns this formatter as a
java.text.Format instance. |
Format |
DateTimeFormatter.toFormat(TemporalQuery<?> parseQuery)
Returns this formatter as a
java.text.Format instance that will
parse using the specified query. |
| Constructor and Description |
|---|
JFormattedTextField(Format format)
Creates a
JFormattedTextField. |
| Modifier and Type | Method and Description |
|---|---|
Format |
InternationalFormatter.getFormat()
Returns the format that dictates the legal values that can be edited
and displayed.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NumberFormatter.setFormat(Format format)
Sets the format that dictates the legal values that can be edited
and displayed.
|
void |
InternationalFormatter.setFormat(Format format)
Sets the format that dictates the legal values that can be edited
and displayed.
|
| Constructor and Description |
|---|
InternationalFormatter(Format format)
Creates an
InternationalFormatter with the specified
Format instance. |
Generated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.