public class GroupValidationMessages extends ValidationMessages
componentCode, namespaceCode
Constructor and Description |
---|
GroupValidationMessages() |
Modifier and Type | Method and Description |
---|---|
protected void |
addValidationMessageDataAttributes(Component parent)
Adds dataAttributes that are appropriate for group level validationMessages data.
|
protected void |
collectIdsFromItems(List<? extends Component> items,
List<String> sectionIds,
List<String> order,
boolean skipSections)
Collects all the ids from the items passed into this method.
|
void |
generateMessages(View view,
Object model,
Component parent)
Generates the messages based on the content in the messageMap
|
boolean |
isCloseable()
If true, validation message divs are closeable(dismissable) by the user and
they do not return until another page level validation/component refresh/page refresh is invoked
|
boolean |
isCollapseAdditionalFieldLinkMessages()
When collapseAdditionalFieldLinkMessages is set to true, the messages generated on field links will be
summarized to limit the space they take up with an appendage similar to [+n message type] appended for
additional
messages that are omitted.
|
boolean |
isDisplayFieldLabelWithMessages()
If true, the error messages will display the an InputField's title
alongside the error, warning, and info messages related to it.
|
boolean |
isDisplayHeaderMessageSummary()
If true, the header message summary will display (this is the message count message appended to section
headers).
|
void |
setCloseable(boolean closeable) |
void |
setCollapseAdditionalFieldLinkMessages(boolean collapseAdditionalFieldLinkMessages)
Set collapseAdditionalFieldLinkMessages
|
void |
setDisplayFieldLabelWithMessages(boolean displayFieldLabelWithMessages)
If true, the error messages will display the an InputField's title
alongside the error, warning, and info messages related to it.
|
void |
setDisplayHeaderMessageSummary(boolean displayHeaderMessageSummary)
Sets whether the header message summary will display or not for this section/page.
|
addNestedGroupKeys, addValidationDataSettingsValue, getAdditionalKeysToMatch, getErrors, getInfos, getKeys, getMessages, getWarnings, isDisplayMessages, setAdditionalKeysToMatch, setAdditionalKeysToMatch, setDisplayMessages, setErrors, setInfos, setWarnings
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
public GroupValidationMessages()
public void generateMessages(View view, Object model, Component parent)
generateMessages
in class ValidationMessages
view
- the current Viewmodel
- the current modelparent
- the parent of this ValidationMessagesprotected void addValidationMessageDataAttributes(Component parent)
This data is used by the validation framework clientside. Some special handling at this level includes retrieving the groups and fields generated by different collection layouts and handling page and fieldGroup scenarios slightly differently due to the nature of how they are built out in the js.
parent
- component that is the parent of the validation messagesprotected void collectIdsFromItems(List<? extends Component> items, List<String> sectionIds, List<String> order, boolean skipSections)
Puts the ids of items determined to be sections into the sectionIds list, and orders all items by the order they appear on the page in the order list with special identifiers to determine the type of item they are (used by the client js). When skipSections is true do not include sectionIds found in the lists.
items
- items of the groupsectionIds
- list to put section ids intoorder
- list to put order of ids into (both fields and sections)skipSections
- skip adding sectionspublic boolean isCloseable()
public void setCloseable(boolean closeable)
isCloseable()
public boolean isDisplayFieldLabelWithMessages()
public void setDisplayFieldLabelWithMessages(boolean displayFieldLabelWithMessages)
displayFieldLabelWithMessages
- the displayFieldLabelWithMessages to setpublic boolean isCollapseAdditionalFieldLinkMessages()
public void setCollapseAdditionalFieldLinkMessages(boolean collapseAdditionalFieldLinkMessages)
collapseAdditionalFieldLinkMessages
- - true if field link messages are being collapsedpublic boolean isDisplayHeaderMessageSummary()
public void setDisplayHeaderMessageSummary(boolean displayHeaderMessageSummary)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.