|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ValidationMessages
To provide the message binding between validator and binder.
Method Summary | |
---|---|
void |
addMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages)
add validation messages to component |
void |
clearMessages(Component comp)
clear validation message of component |
void |
clearMessages(Component comp,
java.lang.String attr)
clear validation message of component |
java.lang.String[] |
getKeyMessages(Component comp,
java.lang.String key)
get validation message of component and a special key |
java.lang.String[] |
getKeyMessages(java.lang.String key)
get validation message of a special key |
java.lang.String[] |
getMessages()
get all validation messages |
java.lang.String[] |
getMessages(Component comp)
get validation messages of a component |
java.lang.String[] |
getMessages(Component comp,
java.lang.String attr)
get validation messages of a component and special attribute |
void |
setMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages)
set validation messages to component, it will replace previous messages |
Method Detail |
---|
void clearMessages(Component comp, java.lang.String attr)
void clearMessages(Component comp)
java.lang.String[] getMessages(Component comp, java.lang.String attr)
java.lang.String[] getMessages(Component comp)
java.lang.String[] getMessages()
java.lang.String[] getKeyMessages(Component comp, java.lang.String key)
java.lang.String[] getKeyMessages(java.lang.String key)
void setMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages)
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagesvoid addMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages)
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messages
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |