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 |
addMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages,
java.lang.Object value)
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
|
Component |
getAssociate(java.lang.String key)
Returns the first associated component from the given key, if any.
|
Component[] |
getAssociates(java.lang.String key)
Returns all associated components from the given key, if any.
|
java.lang.Object |
getFieldValue(Component comp,
java.lang.String key)
Returns the first field value from the given key and component, if any.
|
java.lang.Object |
getFieldValue(java.lang.String key)
Returns the first field value from the given key, if any.
|
java.lang.Object[] |
getFieldValues(Component comp,
java.lang.String key)
Returns all field values from the given key and component, if any.
|
java.lang.Object[] |
getFieldValues(java.lang.String key)
Returns all field values from the given key, if any.
|
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 |
setMessages(Component comp,
java.lang.String attr,
java.lang.String key,
java.lang.String[] messages,
java.lang.Object value)
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 setMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages, java.lang.Object value)
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagesvalue
- the rejected valuevoid 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 messagesvoid addMessages(Component comp, java.lang.String attr, java.lang.String key, java.lang.String[] messages, java.lang.Object value)
comp
- the component refers to the messagesattr
- the attr refers to the messageskey
- the custom key refers to this messages, nullablemessages
- the messagesvalue
- the rejected valuejava.lang.Object getFieldValue(java.lang.String key)
key
- the custom key refers to this messages, nullablejava.lang.Object getFieldValue(Component comp, java.lang.String key)
comp
- the component refers to the valuekey
- the custom key refers to this value, nullablejava.lang.Object[] getFieldValues(java.lang.String key)
key
- the custom key refers to this messages, nullablejava.lang.Object[] getFieldValues(Component comp, java.lang.String key)
comp
- the component refers to the valuekey
- the custom key refers to this value, nullableComponent getAssociate(java.lang.String key)
key
- the custom key refers to this messages, nullableComponent[] getAssociates(java.lang.String key)
key
- the custom key refers to this messages, nullableCopyright © 2005-2018 Potix Corporation. All Rights Reserved.