All Packages  Class Hierarchy  This Package  Previous  Next  Index

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

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

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

See Also:
DataFormatter, IllegalUserDataException

Constructor Index

 o StringFormatter(int, int)
Constructs a StringFormatter.

Method Index

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

Constructors

 o StringFormatter
 public StringFormatter(int minLength,
                        int maxLength)
Constructs a StringFormatter.

Parameters:
minValue - the minimum length
maxValue - the maximum length

Methods

 o parse
 public Object parse(String source) throws IllegalUserDataException
Parses a string to produce a String object. Parsing includes trimming whitespace and checking length. Throws an IllegalUserDataException if parsing fails.

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index