public interface ValidationMessages
Modifier and Type | Method and Description |
---|---|
void |
addMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages)
add validation messages to component
|
void |
clearAllMessages()
clear all validation message
|
void |
clearKeyMessages(Component comp,
java.lang.String key)
clear validation message of component and a special message key
|
void |
clearKeyMessages(java.lang.String key)
clear validation message of a special message key
|
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
|
void clearMessages(Component comp, java.lang.String attr)
void clearMessages(Component comp)
void clearKeyMessages(Component comp, java.lang.String key)
void clearKeyMessages(java.lang.String key)
void clearAllMessages()
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 messagesCopyright © 2005-2011 Potix Corporation. All Rights Reserved.