|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.component.ConfigurableBase org.kuali.rice.krad.uif.component.ComponentBase org.kuali.rice.krad.uif.field.FieldBase org.kuali.rice.krad.uif.field.ErrorsField
public class ErrorsField
Field that displays error, warning, and info messages for the keys that are matched. By default, an ErrorsField will match on id and bindingPath (if this ErrorsField is for an InputField), but can be set to match on additionalKeys and nested components keys (of the its parentComponent). In addition, there are a variety of options which can be toggled to effect the display of these messages during both client and server side validation display. See documentation on each get method for more details on the effect of each option.
Field Summary |
---|
Fields inherited from interface org.kuali.rice.krad.uif.component.Ordered |
---|
INITIAL_ORDER_VALUE |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
ErrorsField()
|
Method Summary | |
---|---|
void |
generateMessages(boolean reset,
View view,
Object model,
Component parent)
|
List<String> |
getAdditionalKeysToMatch()
AdditionalKeysToMatch is an additional list of keys outside of the default keys that will be matched when messages are returned after a form is submitted. |
int |
getErrorCount()
The count of error messages found for the keys that were matched on this ErrorsField This is generated and cannot be set |
List<String> |
getErrors()
The list of error messages found for the keys that were matched on this ErrorsField This is generated and cannot be set |
String |
getErrorTitle()
ErrorTitle is the title that will be shown before any error messages/error counts are displayed |
String |
getGrowlScript()
|
int |
getInfoCount()
The count of info messages found for the keys that were matched on this ErrorsField This is generated and cannot be set |
List<String> |
getInfos()
The list of info messages found for the keys that were matched on this ErrorsField This is generated and cannot be set |
String |
getInfoTitle()
InfoTitle is the title that will be shown before any info messages/info counts are displayed |
protected List<String> |
getKeys(Component parent)
Gets all the keys associated to this ErrorsField. |
int |
getWarningCount()
The count of warning messages found for the keys that were matched on this ErrorsField This is generated and cannot be set |
List<String> |
getWarnings()
The list of warning messages found for the keys that were matched on this ErrorsField This is generated and cannot be set |
String |
getWarningTitle()
WarningTitle is the title that will be shown before any warning messages/warning counts are displayed |
boolean |
isAllowMessageRepeat()
If true, when this is set on an ErrorsField whose parentComponent has nested Containers or AttributeFields, it will allow those fields to also show their ErrorsField messages. |
boolean |
isAlternateContainer()
If this is true, the display of messages is being handled by another container. |
boolean |
isCombineMessages()
Combines the messages for a single key into one concatenated message per key being matched, seperated by a comma |
boolean |
isDisplayCounts()
displayCounts is true if the counts of errors, warning, and info messages within this ErrorsField should be displayed (includes count of nested messages if displayNestedMessages is true). |
boolean |
isDisplayErrorMessages()
If displayErrorMessages is true, error messages will be displayed, otherwise they will not. |
boolean |
isDisplayErrorTitle()
If true, the errorTitle set on this ErrorsField will be displayed along with the error messages. |
boolean |
isDisplayFieldErrorIcon()
If true, displays an icon next to each field that has an error (default KNS look). |
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 |
isDisplayInfoMessages()
If displayInfoMessages is true, info messages will be displayed, otherwise they will not. |
boolean |
isDisplayInfoTitle()
If true, the infoTitle set on this ErrorsField will be displayed along with the info messages. |
boolean |
isDisplayLockMessages()
|
boolean |
isDisplayMessages()
If true, error, warning, and info messages will be displayed (provided they are also set to display). |
boolean |
isDisplayNestedMessages()
If true, this ErrorsField will show messages related to the nested components of its parent component, and not just those related only to its parent component. |
boolean |
isDisplayWarningMessages()
If displayWarningMessages is true, warning messages will be displayed, otherwise they will not. |
boolean |
isDisplayWarningTitle()
If true, the warningTitle set on this ErrorsField will be displayed along with the warning messages. |
boolean |
isFireGrowlsForMessages()
|
boolean |
isHighlightOnError()
|
void |
performFinalize(View view,
Object model,
Component parent)
PerformFinalize will generate the messages and counts used by the errorsField based on the keys that were matched from the MessageMap for this ErrorsField. |
void |
setAdditionalKeysToMatch(List<String> additionalKeysToMatch)
|
void |
setAdditionalKeysToMatch(String additionalKeysToMatch)
Convenience setter for additional keys to match that takes a string argument and splits on comma to build the list |
void |
setAllowMessageRepeat(boolean allowMessageRepeat)
|
void |
setAlternateContainer(boolean alternateContainer)
|
void |
setCombineMessages(boolean combineMessages)
|
void |
setDisplayCounts(boolean displayCounts)
|
void |
setDisplayErrorMessages(boolean displayErrorMessages)
|
void |
setDisplayErrorTitle(boolean displayErrorTitle)
|
void |
setDisplayFieldErrorIcon(boolean displayFieldErrorIcon)
|
void |
setDisplayFieldLabelWithMessages(boolean displayFieldLabelWithMessages)
|
void |
setDisplayInfoMessages(boolean displayInfoMessages)
|
void |
setDisplayInfoTitle(boolean displayInfoTitle)
|
void |
setDisplayLockMessages(boolean displayLockMessages)
This has no use - needs to be removed(?) |
void |
setDisplayMessages(boolean displayMessages)
|
void |
setDisplayNestedMessages(boolean displayNestedMessages)
|
void |
setDisplayWarningMessages(boolean displayWarningMessages)
|
void |
setDisplayWarningTitle(boolean displayWarningTitle)
|
void |
setErrorTitle(String errorTitle)
|
void |
setFireGrowlsForMessages(boolean fireGrowlsForMessages)
|
void |
setHighlightOnError(boolean highlightOnError)
If true, highlights the parentComponent's container when it has an error/warning/info. |
void |
setInfoTitle(String infoTitle)
|
void |
setWarningTitle(String warningTitle)
|
Methods inherited from class org.kuali.rice.krad.uif.field.FieldBase |
---|
getComponentSecurity, getComponentSecurityClass, getComponentsForLifecycle, getComponentTypeName, getLabel, getLabelField, getLabelPlacement, getShortLabel, isLabelFieldRendered, performInitialization, setComponentSecurity, setLabel, setLabelField, setLabelFieldRendered, setLabelPlacement, setShortLabel, setShowLabel |
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.uif.component.Configurable |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Constructor Detail |
---|
public ErrorsField()
Method Detail |
---|
public void performFinalize(View view, Object model, Component parent)
performFinalize
in interface Component
performFinalize
in class FieldBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentFieldBase.performFinalize(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)
public void generateMessages(boolean reset, View view, Object model, Component parent)
protected List<String> getKeys(Component parent)
public String getErrorTitle()
public void setErrorTitle(String errorTitle)
public String getWarningTitle()
public void setWarningTitle(String warningTitle)
public String getInfoTitle()
public void setInfoTitle(String infoTitle)
public boolean isDisplayErrorMessages()
public void setDisplayErrorMessages(boolean displayErrorMessages)
public boolean isDisplayInfoMessages()
public void setDisplayInfoMessages(boolean displayInfoMessages)
public boolean isDisplayLockMessages()
public void setDisplayLockMessages(boolean displayLockMessages)
displayLockMessages
- public boolean isDisplayWarningMessages()
public void setDisplayWarningMessages(boolean displayWarningMessages)
public List<String> getAdditionalKeysToMatch()
public void setAdditionalKeysToMatch(String additionalKeysToMatch)
additionalKeysToMatch
- String to parsepublic void setAdditionalKeysToMatch(List<String> additionalKeysToMatch)
additionalKeysToMatch
- the additionalKeysToMatch to setpublic boolean isDisplayErrorTitle()
public void setDisplayErrorTitle(boolean displayErrorTitle)
displayErrorTitle
- the displayErrorTitle to setpublic boolean isDisplayWarningTitle()
public void setDisplayWarningTitle(boolean displayWarningTitle)
displayWarningTitle
- the displayWarningTitle to setpublic boolean isDisplayInfoTitle()
public void setDisplayInfoTitle(boolean displayInfoTitle)
displayInfoTitle
- the displayInfoTitle to setpublic boolean isDisplayFieldLabelWithMessages()
public void setDisplayFieldLabelWithMessages(boolean displayFieldLabelWithMessages)
displayFieldLabelWithMessages
- the displayFieldLabelWithMessages to setpublic boolean isDisplayMessages()
public void setDisplayMessages(boolean displayMessages)
displayMessages
- the displayMessages to setpublic boolean isDisplayNestedMessages()
public void setDisplayNestedMessages(boolean displayNestedMessages)
displayNestedMessages
- the displayNestedMessages to setpublic boolean isCombineMessages()
public void setCombineMessages(boolean combineMessages)
combineMessages
- the combineMessages to setpublic boolean isAllowMessageRepeat()
public void setAllowMessageRepeat(boolean allowMessageRepeat)
allowMessageRepeat
- the allowMessageRepeat to setpublic boolean isDisplayCounts()
public void setDisplayCounts(boolean displayCounts)
displayCounts
- the displayCounts to setpublic List<String> getErrors()
public List<String> getWarnings()
public List<String> getInfos()
public int getErrorCount()
public int getWarningCount()
public int getInfoCount()
public boolean isAlternateContainer()
public void setAlternateContainer(boolean alternateContainer)
alternateContainer
- the alternateContainer to setpublic boolean isDisplayFieldErrorIcon()
public void setDisplayFieldErrorIcon(boolean displayFieldErrorIcon)
displayFieldErrorIcon
- the displayFieldErrorIcon to setpublic void setHighlightOnError(boolean highlightOnError)
public boolean isHighlightOnError()
public boolean isFireGrowlsForMessages()
public void setFireGrowlsForMessages(boolean fireGrowlsForMessages)
public String getGrowlScript()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |