All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

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

See Also:
DataFormatter, IllegalUserDataException

Constructor Index

 o ShortFormatter(short, short)
Constructs a ShortFormatter.

Method Index

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

Constructors

 o ShortFormatter
 public ShortFormatter(short minValue,
                       short maxValue)
Constructs a ShortFormatter.

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

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index