|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.ui.framework.java.DataFormatter | +--com.ibm.as400.ui.framework.java.StringFormatter
Formatter for exchanging String values between
DataBean
s and user interface components.
If parsing is unsuccessful, an IllegalUserDataException
is thrown.
DataFormatter
,
IllegalUserDataException
Constructor Summary | |
StringFormatter(int minLength,
int maxLength)
Constructs a StringFormatter . |
Method Summary | |
java.lang.Object |
parse(java.lang.String source)
Parses a string to produce a String object. |
Methods inherited from class com.ibm.as400.ui.framework.java.DataFormatter |
format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringFormatter(int minLength, int maxLength)
StringFormatter
.minValue
- the minimum lengthmaxValue
- the maximum lengthMethod Detail |
public java.lang.Object parse(java.lang.String source) throws IllegalUserDataException
String
object.
Parsing includes trimming whitespace and checking length.
Throws an IllegalUserDataException
if parsing fails.parse
in class DataFormatter
source
- the string to be parsed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |