public class ValidationMessagesImpl extends Object implements ValidationMessages, Collection<Object>, Serializable
ValidationMessages| Constructor and Description |
|---|
ValidationMessagesImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object e) |
boolean |
addAll(Collection<? extends Object> c) |
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 |
clear() |
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
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
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
|
boolean |
isEmpty() |
Iterator<Object> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
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
|
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic void clearMessages(org.zkoss.zk.ui.Component comp)
ValidationMessagesclearMessages in interface ValidationMessagespublic void clearMessages(org.zkoss.zk.ui.Component comp,
String attr)
ValidationMessagesclearMessages in interface ValidationMessagespublic void clearKeyMessages(org.zkoss.zk.ui.Component comp,
String key)
ValidationMessagesclearKeyMessages in interface ValidationMessagespublic void clearKeyMessages(String key)
ValidationMessagesclearKeyMessages in interface ValidationMessagespublic void clearAllMessages()
ValidationMessagesclearAllMessages in interface ValidationMessagespublic String[] getMessages(org.zkoss.zk.ui.Component comp, String attr)
ValidationMessagesgetMessages in interface ValidationMessagespublic String[] getMessages(org.zkoss.zk.ui.Component comp)
ValidationMessagesgetMessages in interface ValidationMessagespublic String[] getMessages()
ValidationMessagesgetMessages in interface ValidationMessagespublic String[] getKeyMessages(org.zkoss.zk.ui.Component comp, String key)
ValidationMessagesgetKeyMessages in interface ValidationMessagespublic String[] getKeyMessages(String key)
ValidationMessagesgetKeyMessages in interface ValidationMessagespublic void setMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages)
ValidationMessagessetMessages in interface ValidationMessagescomp - the component refers to the messagesattr - the attr refers to the messageskey - the custom key refers to this messages, nullablemessages - the messagespublic void setMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages,
Object value)
ValidationMessagessetMessages in interface ValidationMessagescomp - the component refers to the messagesattr - the attr refers to the messageskey - the custom key refers to this messages, nullablemessages - the messagesvalue - the rejected valuepublic void addMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages)
ValidationMessagesaddMessages in interface ValidationMessagescomp - the component refers to the messagesattr - the attr refers to the messageskey - the custom key refers to this messages, nullablemessages - the messagespublic void addMessages(org.zkoss.zk.ui.Component comp,
String attr,
String key,
String[] messages,
Object value)
ValidationMessagesaddMessages in interface ValidationMessagescomp - the component refers to the messagesattr - the attr refers to the messageskey - the custom key refers to this messages, nullablemessages - the messagesvalue - the rejected valuepublic Object getFieldValue(String key)
ValidationMessagesgetFieldValue in interface ValidationMessageskey - the custom key refers to this messages, nullablepublic Object getFieldValue(org.zkoss.zk.ui.Component comp, String key)
ValidationMessagesgetFieldValue in interface ValidationMessagescomp - the component refers to the valuekey - the custom key refers to this value, nullablepublic Object[] getFieldValues(String key)
ValidationMessagesgetFieldValues in interface ValidationMessageskey - the custom key refers to this messages, nullablepublic Object[] getFieldValues(org.zkoss.zk.ui.Component comp, String key)
ValidationMessagesgetFieldValues in interface ValidationMessagescomp - the component refers to the valuekey - the custom key refers to this value, nullablepublic org.zkoss.zk.ui.Component getAssociate(String key)
ValidationMessagesgetAssociate in interface ValidationMessageskey - the custom key refers to this messages, nullablepublic org.zkoss.zk.ui.Component[] getAssociates(String key)
ValidationMessagesgetAssociates in interface ValidationMessageskey - the custom key refers to this messages, nullablepublic int size()
size in interface Collection<Object>public boolean isEmpty()
isEmpty in interface Collection<Object>public boolean contains(Object o)
contains in interface Collection<Object>public Object[] toArray()
toArray in interface Collection<Object>public <T> T[] toArray(T[] a)
toArray in interface Collection<Object>public boolean add(Object e)
add in interface Collection<Object>public boolean remove(Object o)
remove in interface Collection<Object>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Object>public boolean addAll(Collection<? extends Object> c)
addAll in interface Collection<Object>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Object>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Object>public void clear()
clear in interface Collection<Object>Copyright © 2020. All rights reserved.