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
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
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 |
FieldValidationMessages
public FieldValidationMessages()
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 Viewmodel
- the current modelparent
- 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.