borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

DateFormatter component

java.lang.Object
   +----borland.jbcl.model.ItemFormatter
           +----borland.jbcl.model.VariantFormatter
                   +----borland.jbcl.model.DateFormatter

About the DateFormatter component

Constructors  Properties  Methods  
The DateFormatter class formats and parses date and time data.

Edit/display mask patterns.


DateFormatter constructors

DateFormatter properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.VariantFormatter

Properties implemented in java.lang.Object

DateFormatter methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.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(borland.jbcl.util.Variant)

  public final String format(borland.jbcl.util.Variant value)
Returns a String representing the given date and time 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: borland.jbcl.model.VariantFormatter.format(borland.jbcl.util.Variant)

parse(java.lang.String, borland.jbcl.util.Variant)

  public final void parse(java.lang.String stringValue, borland.jbcl.util.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: borland.jbcl.model.VariantFormatter.parse(java.lang.String, borland.jbcl.util.Variant)