borland Packages Class Hierarchy dx.text Package
java.lang.Object +----com.borland.dx.text.ItemFormatter +----com.borland.dx.text.VariantFormatter +----com.borland.dx.text.DoubleFormatter
Constructors Properties Methods
Implements Serializable
The DoubleFormatter
class formats and parses data of type double.
public DoubleFormatter(int type)Constructs a
DoubleFormatter
object.
type
Variant
data. type
must always be Variant.DOUBLE
.
public int getVariantType()Returns the
Variant
type, which is always Variant.DOUBLE
for a DoubleFormatter
.
public final String format(Variant value)Returns a
String
representing the double value stored in the Variant
. All reasonable attempts are made to "cast" the type found in the object into the appropriate type specified in the constructor of the implementing classes. A returned empty string indicates a null or empty input value. null means the formatting failed.
value
String
.
public final void parse(String stringValue, Variant value)Analyzes the given
String
and produces as output a Variant
containing the approriate double value.
stringValue
value
Variant
that receives the parsed result.