borland Packages  Class Hierarchy  jbcl.model Package  Index 

BigDecimalFormatter class

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

About the BigDecimalFormatter class

Constructors  Properties  Methods  

Implements Serializable

The BigDecimalFormatter class formats and parses the JDK BigDecimal values.

Edit/display mask patterns.


BigDecimalFormatter constructors

BigDecimalFormatter 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

BigDecimalFormatter methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.VariantFormatter

Methods implemented in java.lang.Object


BigDecimalFormatter constructors

BigDecimalFormatter(int)

  public BigDecimalFormatter(int scale)
Constructs a BigDecimalFormatter object.

Parameters:

scale
Specify scale as a power of 10 the integer value is divided by implicitly.

BigDecimalFormatter properties

variantType

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

BigDecimalFormatter methods

format(borland.jbcl.util.Variant)

  public String format(borland.jbcl.util.Variant value)
Returns a String representing the given BigDecimal value stored in the supplied 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 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)