|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.rcp.xui.validator.Validator
com.ibm.btt.rcp.xui.validator.TextLengthValidator
public class TextLengthValidator
Checks if a string has non whitespace characters. Parameters allow you to constrain the length. Ignore any illegal settings as -1 etc.
Constructor Summary | |
---|---|
TextLengthValidator()
Default constructor for TextLengthValidator |
|
TextLengthValidator(int ilength,
int iminLength,
int imaxLength)
Constructor for TextLengthValidator |
Method Summary | |
---|---|
int |
getLength()
Get Length Attribute |
int |
getMaxLength()
Get MaxLength Attribute |
int |
getMinLength()
Get MinLength Attribute |
void |
setLength(int length)
Set Length Attribute |
void |
setMaxLength(int maxLength)
Set MaxLength Attribute |
void |
setMinLength(int minLength)
Set MinLength Attribute |
java.lang.String |
validate(IXUIWidget source,
java.lang.String text)
Validate input text if this text is valid. |
Methods inherited from class com.ibm.btt.rcp.xui.validator.Validator |
---|
getErrorMessage, setErrorMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextLengthValidator()
public TextLengthValidator(int ilength, int iminLength, int imaxLength)
ilength
- If set, checks if there are exactly flags.length number of characters.iminLength
- If set, checks if there are at least flags.minlength number of characters.imaxLength
- If set, checks if there are at most flags.maxlength number of characters.Method Detail |
---|
public java.lang.String validate(IXUIWidget source, java.lang.String text)
IValidator
public int getLength()
public void setLength(int length)
length
- If set, checks if there are exactly flags.length number of characters.public int getMaxLength()
public void setMaxLength(int maxLength)
maxLength
- If set, checks if there are at most flags.maxlength number of characters.public int getMinLength()
public void setMinLength(int minLength)
minLength
- If set, checks if there are at least flags.minlength number of characters.
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |