All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.ui.framework.java.FloatFormatter

java.lang.Object
   |
   +----com.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.

See Also:
DataFormatter, IllegalUserDataException

Constructor Index

 o FloatFormatter(double, double)
Constructs a FloatFormatter.

Method Index

 o parse(String)
Parses a string to produce a Double object.

Constructors

 o FloatFormatter
 public FloatFormatter(double minValue,
                       double maxValue)
Constructs a FloatFormatter.

Parameters:
minValue - the minimum value required
maxValue - the maximum value required

Methods

 o parse
 public Object parse(String source) throws IllegalUserDataException
Parses a string to produce a Double object. Throws an IllegalUserDataException if parsing fails.

Parameters:
source - the string to be parsed
Returns:
the Double object obtained by parsing the string
Overrides:
parse in class DataFormatter

All Packages  Class Hierarchy  This Package  Previous  Next  Index