Uses of Class
java.text.Format
Packages that use Format
Package
Description
Provides classes and interfaces for handling text, dates, numbers,
and messages in a manner independent of natural languages.
Provides classes to print and parse dates and times.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of Format in java.text
Modifier and TypeClassDescriptionclassChoiceFormatis a concrete subclass ofNumberFormatthat allows you to attach a format to a range of numbers.final classCompactNumberFormatis a concrete subclass ofNumberFormatthat formats a decimal number in a localized compact form.classDateFormatis an abstract class for date/time formatting subclasses which formats and parses dates or time in a language-independent manner.classDecimalFormatis a concrete subclass ofNumberFormatthat formats decimal numbers in a localized manner.final classListFormatformats or parses a list of strings in a locale-sensitive way.classMessageFormatprovides a means to produce concatenated messages in a language-neutral way.classNumberFormatis the abstract base class for all number formats.classSimpleDateFormatis a concrete class for formatting and parsing dates in a locale-sensitive manner.Modifier and TypeMethodDescriptionFormat[]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 intoformatmethods or returned fromparsemethods.Modifier and TypeMethodDescriptionvoidSets the format to use for the format element with the given format element index within the previously set pattern string.voidMessageFormat.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.voidMessageFormat.setFormats(Format[] newFormats) Sets the formats to use for the format elements in the previously set pattern string.voidMessageFormat.setFormatsByArgumentIndex(Format[] newFormats) Sets the formats to use for the values passed intoformatmethods or returned fromparsemethods. -
Uses of Format in java.time.format
Methods in java.time.format that return FormatModifier and TypeMethodDescriptionDateTimeFormatter.toFormat()Returns this formatter as ajava.text.Formatinstance.DateTimeFormatter.toFormat(TemporalQuery<?> parseQuery) Returns this formatter as ajava.text.Formatinstance that will parse using the specified query. -
Uses of Format in javax.swing
Constructors in javax.swing with parameters of type Format -
Uses of Format in javax.swing.text
Methods in javax.swing.text that return FormatModifier and TypeMethodDescriptionInternationalFormatter.getFormat()Returns the format that dictates the legal values that can be edited and displayed.Methods in javax.swing.text with parameters of type FormatModifier and TypeMethodDescriptionvoidSets the format that dictates the legal values that can be edited and displayed.voidSets the format that dictates the legal values that can be edited and displayed.Constructors in javax.swing.text with parameters of type FormatModifierConstructorDescriptionInternationalFormatter(Format format) Creates anInternationalFormatterwith the specifiedFormatinstance.