Uses of Class
java.text.Format
-
Packages that use Format Package Description java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.java.time.format Provides classes to print and parse dates and times.javafx.beans.binding Provides classes that create and operate on aBinding
that calculates a value that depends on one or more sources.javafx.beans.property The packagejavafx.beans.property
defines read-only properties and writable properties, plus a number of implementations.javafx.util.converter This package is for standard string converters for JavaFX.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. -
-
Uses of Format in java.text
Subclasses of Format in java.text Modifier and Type Class Description class
ChoiceFormat
AChoiceFormat
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 ofNumberFormat
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.Methods in java.text that return Format Modifier and Type Method 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 intoformat
methods or returned fromparse
methods.Methods in java.text with parameters of type Format Modifier and Type Method 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 intoformat
methods or returned fromparse
methods. -
Uses of Format in java.time.format
Methods in java.time.format that return Format Modifier and Type Method Description Format
DateTimeFormatter. toFormat()
Returns this formatter as ajava.text.Format
instance.Format
DateTimeFormatter. toFormat(TemporalQuery<?> parseQuery)
Returns this formatter as ajava.text.Format
instance that will parse using the specified query. -
Uses of Format in javafx.beans.binding
Methods in javafx.beans.binding with parameters of type Format Modifier and Type Method Description static void
Bindings. bindBidirectional(Property<String> stringProperty, Property<?> otherProperty, Format format)
Generates a bidirectional binding (or "bind with inverse") between aString
-Property
and anotherProperty
using the specifiedFormat
for conversion. -
Uses of Format in javafx.beans.property
Methods in javafx.beans.property with parameters of type Format Modifier and Type Method Description void
StringProperty. bindBidirectional(Property<?> other, Format format)
Create a bidirectional binding between thisStringProperty
and another arbitrary property. -
Uses of Format in javafx.util.converter
Methods in javafx.util.converter that return Format Modifier and Type Method Description protected Format
FormatStringConverter. getFormat()
Return aFormat
instance to use for formatting and parsing in thisStringConverter
.Constructors in javafx.util.converter with parameters of type Format Constructor Description FormatStringConverter(Format format)
-
Uses of Format in javax.swing
Constructors in javax.swing with parameters of type Format Constructor Description JFormattedTextField(Format format)
Creates aJFormattedTextField
. -
Uses of Format in javax.swing.text
Methods in javax.swing.text that return Format Modifier and Type Method Description Format
InternationalFormatter. getFormat()
Returns the format that dictates the legal values that can be edited and displayed.Methods in javax.swing.text with parameters of type Format Modifier and Type Method Description void
InternationalFormatter. setFormat(Format format)
Sets the format that dictates the legal values that can be edited and displayed.void
NumberFormatter. setFormat(Format format)
Sets the format that dictates the legal values that can be edited and displayed.Constructors in javax.swing.text with parameters of type Format Constructor Description InternationalFormatter(Format format)
Creates anInternationalFormatter
with the specifiedFormat
instance.
-