|
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.MaxLengthValidator
public class MaxLengthValidator
Using this you can specify the maximum length of text input. It can be used in afterValidators and beforeValidators.
Constructor Summary | |
---|---|
MaxLengthValidator()
Default Constructor for MaxLengthValidator |
|
MaxLengthValidator(int length)
Constructor for MaxLengthValidator with max length attribute |
Method Summary | |
---|---|
int |
getMaxLength()
Get max length for this validator |
void |
setMaxLength(int maxLength)
Set max length for this validator |
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 MaxLengthValidator()
public MaxLengthValidator(int length)
length
- max lengthMethod Detail |
---|
public int getMaxLength()
public void setMaxLength(int maxLength)
maxLength
- public java.lang.String validate(IXUIWidget source, java.lang.String text)
IValidator
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |