org.zkoss.bind.sys
Interface ValidationMessages

All Known Implementing Classes:
ValidationMessagesImpl

public interface ValidationMessages

To provide the message binding between validator and binder.

Since:
6.0.0
Author:
dennis

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

clearMessages

void clearMessages(Component comp,
                   java.lang.String attr)
clear validation message of component


clearMessages

void clearMessages(Component comp)
clear validation message of component


getMessages

java.lang.String[] getMessages(Component comp,
                               java.lang.String attr)
get validation messages of a component and special attribute

Returns:
null if no message in component and attribute

getMessages

java.lang.String[] getMessages(Component comp)
get validation messages of a component

Returns:
null if no message of component

getMessages

java.lang.String[] getMessages()
get all validation messages

Returns:
null if no messages
Since:
6.0.1

getKeyMessages

java.lang.String[] getKeyMessages(Component comp,
                                  java.lang.String key)
get validation message of component and a special key

Returns:
null if no message of key

getKeyMessages

java.lang.String[] getKeyMessages(java.lang.String key)
get validation message of a special key

Returns:
null if no message of key

setMessages

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

Parameters:
comp - the component refers to the messages
attr - the attr refers to the messages
key - the custom key refers to this messages, nullable
messages - the messages

addMessages

void addMessages(Component comp,
                 java.lang.String attr,
                 java.lang.String key,
                 java.lang.String[] messages)
add validation messages to component

Parameters:
comp - the component refers to the messages
attr - the attr refers to the messages
key - the custom key refers to this messages, nullable
messages - the messages


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo