| Package | Description |
|---|---|
| java.text |
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
|
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text components.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
DateFormat
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
DateFormat.formatToCharacterIterator and as field identifiers in
FieldPosition.
|
static class |
MessageFormat
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
MessageFormat.formatToCharacterIterator.
|
static class |
NumberFormat
Defines constants that are used as attribute keys in the
AttributedCharacterIterator returned from
NumberFormat.formatToCharacterIterator and as field identifiers in
FieldPosition.
|
| Modifier and Type | Method and Description |
|---|---|
Format |
FieldPosition.getFieldAttribute()
Returns the field identifier as an attribute constant from one of the
Field subclasses.
|
| Constructor and Description | |
|---|---|
FieldPosition(Format
Creates a FieldPosition object for the given field constant.
|
|
FieldPosition(Format
Creates a
FieldPosition object for the given field.
|
| Modifier and Type | Method and Description |
|---|---|
Format |
InternationalFormatter.getFields(int offset)
Returns the
Format.Field constants associated with the text at
offset.
|