|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.ui.framework.java.DataFormatter
com.ibm.as400.ui.framework.java.FloatFormatter
public class FloatFormatter extends DataFormatter
Formatter for exchanging Float values between
DataBeans and user interface components.
If parsing is unsuccessful, an IllegalUserDataException is thrown.
DataFormatter,
IllegalUserDataException| Constructor and Description |
|---|
FloatFormatter(double minValue,
double maxValue)
Constructs a FloatFormatter. |
| Modifier and Type | Method and Description |
|---|---|
String |
format(double dnumber)
Format a double number |
String |
format(Object obj)
Format a number as floating point based on the current locale Throws an IllegalArgumentException if the object is not an instance of Double, Float, Long, or Integer. |
Object |
parse(String source)
Parses a string to produce a Double object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FloatFormatter(double minValue,
double maxValue)
FloatFormatter.
minValue - the minimum value requiredmaxValue - the maximum value required| Method Detail |
|---|
public String format(double dnumber)
dnumber - a valid double number.public String format(Object obj)
format in class DataFormatterobj - a valid Double, Float, Long, or Integer object cast as an object.
public Object parse(String source)
throws IllegalUserDataException
Double object.
Throws an IllegalUserDataException if parsing fails.
parse in class DataFormattersource - the string to be parsedIllegalUserDataException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||