All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

java.lang.Object
   |
   +----com.ibm.as400.ui.framework.java.DataFormatter
           |
           +----com.ibm.as400.ui.framework.java.IntFormatter

public class IntFormatter
extends DataFormatter
Formatter for exchanging Integer values between DataBeans and user interface components. If parsing is unsuccessful, an IllegalUserDataException is thrown.

See Also:
DataFormatter, IllegalUserDataException

Constructor Index

 o IntFormatter(int, int)
Constructs a FloatFormatter.

Method Index

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

Constructors

 o IntFormatter
 public IntFormatter(int minValue,
                     int 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 an Integer object. Throws an IllegalUserDataException if parsing fails.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index