Package org.kuali.rice.krad.uif.element
Class FieldValidationMessages
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
org.kuali.rice.krad.uif.element.ValidationMessages
org.kuali.rice.krad.uif.element.FieldValidationMessages
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean
ValidationMessages for logic and options specific to fields.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateMessages(View view, Object model, Component parent) Calls super and add dataAttributes that are appropriate for field level validationMessages data.booleanIf true, display dynamic icons next to fields which have messages.booleanWhen true, use the tooltip on fields to display their relevant messages.voidsetShowIcons(boolean showIcons) Set whether field validation icons should display or not.voidsetUseTooltip(boolean useTooltip) Set the useTooltip flagMethods inherited from class org.kuali.rice.krad.uif.element.ValidationMessages
addNestedGroupKeys, addValidationDataSettingsValue, getAdditionalKeysToMatch, getErrors, getInfos, getKeys, getMessages, getWarnings, isDisplayMessages, setAdditionalKeysToMatch, setAdditionalKeysToMatch, setDisplayMessages, setErrors, setInfos, setWarningsMethods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
-
Constructor Details
-
FieldValidationMessages
public FieldValidationMessages()
-
-
Method Details
-
generateMessages
Calls super and add dataAttributes that are appropriate for field level validationMessages data. This data is used by the validation framework clientside.- Overrides:
generateMessagesin classValidationMessages- Parameters:
view- the current Viewmodel- the current modelparent- the parent of this ValidationMessages- See Also:
-
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-
-