borland Packages  Class Hierarchy  dx.text Package 

DateFormatter component

java.lang.Object
   +----com.borland.dx.text.ItemFormatter
           +----com.borland.dx.text.VariantFormatter
                   +----com.borland.dx.text.DateFormatter

About the DateFormatter component

Constructors  Properties  Methods  

Implements Serializable

The DateFormatter class uses a Variant of type Variant.DATE, which stores data in a java.sql.Date object. This object is able to store time information; however, all time-related operations on java.sql.Date objects are deprecated.

To work with time data, use TimeFormatter or TimestampFormatter.

See also: Edit/display mask patterns


DateFormatter constructors

DateFormatter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in com.borland.dx.text.VariantFormatter

Properties implemented in java.lang.Object

DateFormatter methods

Methods implemented in this class

Methods implemented in com.borland.dx.text.VariantFormatter

Methods implemented in java.lang.Object


DateFormatter constructors

DateFormatter()

  public DateFormatter()
Constructs a DateFormatter object.

DateFormatter properties

variantType

 public int getVariantType()
Returns the Variant type, which is always Variant.DATE for DateFormatter classes.

DateFormatter methods

format(com.borland.dx.dataset.Variant)

  public final String format(Variant value)
Returns a String representing the given date stored in the Variant. A returned empty string indicates a null or empty input value. null means the formatting failed.

Parameters:

value
The value to be formatted to a String.

Overrides: com.borland.dx.text.VariantFormatter.format(com.borland.dx.dataset.Variant)

parse(java.lang.String, com.borland.dx.dataset.Variant)

  public final void parse(String stringValue, Variant value)
Analyzes the given String and produces as output a Variant containing the approriate value.

Parameters:

stringValue
The string to be parsed.
value
The Variant that receives the parsed result.

Overrides: com.borland.dx.text.VariantFormatter.parse(java.lang.String, com.borland.dx.dataset.Variant)