All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

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

See Also:
DataFormatter, IllegalUserDataException

Constructor Index

 o LongFormatter(long, long)
Constructs a LongFormatter.

Method Index

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

Constructors

 o LongFormatter
 public LongFormatter(long minValue,
                      long maxValue)
Constructs a LongFormatter.

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 Long object. Throws an IllegalUserDataException if parsing fails.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index