|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.validator.AbstractValidator
public abstract class AbstractValidator
A abstract validator the handling validation message
ValidationMessages
Constructor Summary | |
---|---|
AbstractValidator()
|
Method Summary | |
---|---|
protected void |
addInvalidMessage(ValidationContext ctx,
java.lang.String message)
add a message to validation context, when you call this method, it also set context invalid. |
protected void |
addInvalidMessage(ValidationContext ctx,
java.lang.String key,
java.lang.String message)
add a message to validation context, when you call this method, it also sets context invalid. |
protected void |
addInvalidMessages(ValidationContext ctx,
java.lang.String[] messages)
add multiple messages to validation context, when you call this method, it also sets the context invalid. |
protected void |
addInvalidMessages(ValidationContext ctx,
java.lang.String key,
java.lang.String[] messages)
add multiple messages to validation context, when you call this method, it also sets the context invalid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.zkoss.bind.Validator |
---|
validate |
Constructor Detail |
---|
public AbstractValidator()
Method Detail |
---|
protected void addInvalidMessage(ValidationContext ctx, java.lang.String message)
ctx
- the validation contextmessage
- the message of validationprotected void addInvalidMessage(ValidationContext ctx, java.lang.String key, java.lang.String message)
ctx
- the validation contextkey
- the custom key of messagemessage
- the message of validationprotected void addInvalidMessages(ValidationContext ctx, java.lang.String[] messages)
ctx
- the validation contextmessages
- messages of validationprotected void addInvalidMessages(ValidationContext ctx, java.lang.String key, java.lang.String[] messages)
ctx
- the validation contextkey
- the custom key of messagemessages
- messages of validation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |