public interface ValidationMessages
| Modifier and Type | Method and Description |
|---|---|
void |
addMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages)
add validation messages to component
|
void |
addMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages,
Object value)
add validation messages to component
|
void |
clearAllMessages()
clear all validation message
|
void |
clearKeyMessages(org.zkoss.zk.ui.Component comp,
String key)
clear validation message of component and a special message key
|
void |
clearKeyMessages(String key)
clear validation message of a special message key
|
void |
clearMessages(org.zkoss.zk.ui.Component comp)
clear validation message of component
|
void |
clearMessages(org.zkoss.zk.ui.Component comp,
String attr)
clear validation message of component
|
org.zkoss.zk.ui.Component |
getAssociate(String key)
Returns the first associated component from the given key, if any.
|
org.zkoss.zk.ui.Component[] |
getAssociates(String key)
Returns all associated components from the given key, if any.
|
Object |
getFieldValue(org.zkoss.zk.ui.Component comp,
String key)
Returns the first field value from the given key and component, if any.
|
Object |
getFieldValue(String key)
Returns the first field value from the given key, if any.
|
Object[] |
getFieldValues(org.zkoss.zk.ui.Component comp,
String key)
Returns all field values from the given key and component, if any.
|
Object[] |
getFieldValues(String key)
Returns all field values from the given key, if any.
|
String[] |
getKeyMessages(org.zkoss.zk.ui.Component comp,
String key)
get validation message of component and a special key
|
String[] |
getKeyMessages(String key)
get validation message of a special key
|
String[] |
getMessages()
get all validation messages
|
String[] |
getMessages(org.zkoss.zk.ui.Component comp)
get validation messages of a component
|
String[] |
getMessages(org.zkoss.zk.ui.Component comp,
String attr)
get validation messages of a component and special attribute
|
void |
setMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages)
set validation messages to component, it will replace previous messages
|
void |
setMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages,
Object value)
set validation messages to component, it will replace previous messages
|
void clearMessages(org.zkoss.zk.ui.Component comp,
String attr)
void clearMessages(org.zkoss.zk.ui.Component comp)
void clearKeyMessages(org.zkoss.zk.ui.Component comp,
String key)
void clearKeyMessages(String key)
void clearAllMessages()
String[] getMessages(org.zkoss.zk.ui.Component comp, String attr)
String[] getMessages(org.zkoss.zk.ui.Component comp)
String[] getMessages()
String[] getKeyMessages(org.zkoss.zk.ui.Component comp, String key)
String[] getKeyMessages(String key)
void setMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
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(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages,
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(org.zkoss.zk.ui.Component comp,
String attr,
String key,
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(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages,
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 valueObject getFieldValue(String key)
key - the custom key refers to this messages, nullableObject getFieldValue(org.zkoss.zk.ui.Component comp, String key)
comp - the component refers to the valuekey - the custom key refers to this value, nullableObject[] getFieldValues(String key)
key - the custom key refers to this messages, nullableObject[] getFieldValues(org.zkoss.zk.ui.Component comp, String key)
comp - the component refers to the valuekey - the custom key refers to this value, nullableorg.zkoss.zk.ui.Component getAssociate(String key)
key - the custom key refers to this messages, nullableorg.zkoss.zk.ui.Component[] getAssociates(String key)
key - the custom key refers to this messages, nullableCopyright © 2020. All rights reserved.