com.borland Packages com.borland Class Hierarchy
Chapter 6
dx.text package
About the com.borland.dx.text package
The com.borland.dx.text package contains classes and interfaces that:
- Control alignment and formatting of objects
- Control formatting of data and values
- Handle formatting and parsing exceptions
- Handle input validation
The dx.text package contains the following types of classes:
The following classes and interfaces in this package are used internally by classes in
this and other com.borland packages. These classes and interfaces are not intended for general use and are not documented. Do not use these classes and interfaces directly in your application.
For more information, visit the database newsgroup. Details on newsgroups can be found at http://www.borland.com/newsgroups. The database newsgroup is dedicated to issues about writing database applications and is actively monitored by our support engineers as well as the Development team.
See also:
Overview of classes in this package
Library overview
Interfaces
Classes and components
Overview of classes in the com.borland.dx.text package
ItemEditor classes
An Item Editor class involves character-by-character control of input.
- ItemEditMask
- An open interface for character-by-character input validation.
- ItemEditMaskState
- Carries state information for a control while the control is using an ItemEditMask interface. The control owns this information, though it is instantiated by the ItemEditMask. This allows multiple controls to share a common ItemEditMask.
- ItemEditMaskStr
- Implements the ItemEditMask interface using pattern strings to control formatting, parsing, and edit interactions.
ItemFormatter classes
An Item Formatter class translates a complete input value to or from a specified data type.
- VariantFormatter
- Base class to format and parse numeric data, time and date data, and strings. Implemented by ItemFormatStr, which uses JDK pattern strings. Supports numeric, currency, date-time, and text patterns.
- VariantFormatStr
- Extends the VariantFormatter class. Uses string patterns to control formatting and parsing. Supports numeric, currency, date-time, and text patterns.
- ItemFormatStr
- A simple wrapper class for VariantFormatStr. It was written primarily so there was a version of VariantFormatStr which implemented the basic ItemFormatter interface. This was done because the model-view architecture does not know about variants. This provides a way for the model-view classes to use VariantFormatStr for dataset activities without knowing about variants.
- SimpleFormatter
- A simple wrapper class around VariantFormatter which hides the details of the formatting pattern and the desired Locale. You just tell it the type of data you want to format or parse, and it uses VariantFormatStr, which handles all the processing. Primarily intended as an example.
- ItemFormatter
- An interface for translating a data object to and from a string.
- BigDecimalFormatter
- Implements ItemFormatter for the BigDecimal data type.
- BooleanFormat
- A string-based pattern used to create a BooleanFormatter object. Enables working with two values, stored as true or false, but formatted using string values you specify.
- BinaryFormatter
- Implements ItemFormatter for the Binary data type.
- BooleanFormatter
- Implements ItemFormatter for the boolean data type.
- ByteFormatter
- Used for formatting and parsing byte columns in DataSets. The range is -128 to 127.
- DateFormatter
- Implements ItemFormatter for the Date data type.
- DoubleFormatter
- Implements ItemFormatter for the double data type.
- IntegerFormatter
- Implements ItemFormatter for the int data type.
- LongFormatter
- Implements ItemFormatter for the long data type.
- ObjectFormatter
-
Implements ItemFormatter for the Java Object data type.
- ShortFormatter
- Like ByteFormatter, but for short columns (-32767 to 32768).
- StringFormatter
- Implements ItemFormatter for the String data type.
- TextFormat
- Extends the basic Format class but allows for special formatting of text. Uses standard control patterns for fill characters and replace characters.
- TimeFormatter
- Implements ItemFormatter for the Time data type.
- TimestampFormatter
- Implements ItemFormatter for the Timestamp data type.
Exception-related classes
- InvalidFormatException
- The Exception class generated by format and parser code exceptions.
Placement-related classes
- Alignment
- Provides general-purpose two-dimensional alignment constants for aligning an object within a rectangular container.