org.kuali.rice.krad.uif.element
Class FieldValidationMessages

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.DictionaryBeanBase
      extended by org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
          extended by org.kuali.rice.krad.uif.element.ValidationMessages
              extended by org.kuali.rice.krad.uif.element.FieldValidationMessages
All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean

public class FieldValidationMessages
extends ValidationMessages

ValidationMessages for logic and options specific to fields.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode
 
Constructor Summary
FieldValidationMessages()
           
 
Method Summary
 void generateMessages(View view, Object model, Component parent)
          Calls super and add dataAttributes that are appropriate for field level validationMessages data.
 boolean isShowIcons()
          If true, display dynamic icons next to fields which have messages.
 boolean isUseTooltip()
          When true, use the tooltip on fields to display their relevant messages.
 void setShowIcons(boolean showIcons)
          Set whether field validation icons should display or not.
 void setUseTooltip(boolean useTooltip)
          Set the useTooltip flag
 
Methods inherited from class org.kuali.rice.krad.uif.element.ValidationMessages
addNestedGroupKeys, addValidationDataSettingsValue, getAdditionalKeysToMatch, getErrors, getInfos, getKeys, getMessages, getWarnings, isDisplayMessages, setAdditionalKeysToMatch, setAdditionalKeysToMatch, setDisplayMessages, setErrors, setInfos, setWarnings
 
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, preventModification, setComponentCode, setNamespaceCode, unwrap
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
 

Constructor Detail

FieldValidationMessages

public FieldValidationMessages()
Method Detail

generateMessages

public void generateMessages(View view,
                             Object model,
                             Component parent)
Calls super and add dataAttributes that are appropriate for field level validationMessages data. This data is used by the validation framework clientside.

Overrides:
generateMessages in class ValidationMessages
Parameters:
view - the current View
model - the current model
parent - the parent of this ValidationMessages
See Also:
krad.validate.js

isUseTooltip

public boolean isUseTooltip()
When true, use the tooltip on fields to display their relevant messages. When false, these messages will appear directly below the control.

Returns:
true if using tooltips for messages, false to display below control

setUseTooltip

public void setUseTooltip(boolean useTooltip)
Set the useTooltip flag

Parameters:
useTooltip - if true, show tooltip, otherwise show messages below field control

isShowIcons

public boolean isShowIcons()
If true, display dynamic icons next to fields which have messages. Otherwise, do not render these icons.

Returns:
true if icons will be displayed, false otherwise

setShowIcons

public void setShowIcons(boolean showIcons)
Set whether field validation icons should display or not.

Parameters:
showIcons -


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.