Interface CheckListValidationSupport<Item_T,Context_T,CustomOptionsBean_T>
-
- All Known Implementing Classes:
PoolAgentTypeSelectorDescriptor
,PoolProjectSelectorDescriptor
public interface CheckListValidationSupport<Item_T,Context_T,CustomOptionsBean_T>
Provides ability to validate user changes and show warnings right in the check list popup.- Author:
- Maxim.Manuylov Date: 10/1/11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getNoWarningsText()
Returns the text to be displayed when no warnings were returned fromgetWarnings(java.util.List, Object, Object)
or null to show no text in that caseString
getValidationProgressText()
Returns the text to be displayed while warnings are being collected.List<Warning>
getWarnings(List<Item_T> checkedItems, CustomOptionsBean_T customOptions, Context_T context)
Collects warnings to be shown to user.
-
-
-
Method Detail
-
getWarnings
@NotNull List<Warning> getWarnings(@NotNull List<Item_T> checkedItems, @Nullable CustomOptionsBean_T customOptions, @NotNull Context_T context)
Collects warnings to be shown to user. Method is called on every user change.- Parameters:
checkedItems
- checked list items (sublist of the list, returned byCheckListPopupDialogType.collectItems(Object)
method, in the same order)customOptions
- not null custom options bean, which was provided byCheckListCustomOptionsSupport
, or null if there is no custom options supportcontext
- check list popup context, seeCheckListPopupDialogType
for more info- Returns:
- list of warnings to be listed in popup in the order in which they must be listed
-
getNoWarningsText
@Nullable String getNoWarningsText()
Returns the text to be displayed when no warnings were returned fromgetWarnings(java.util.List, Object, Object)
or null to show no text in that case- Returns:
- see above
-
getValidationProgressText
@NotNull String getValidationProgressText()
Returns the text to be displayed while warnings are being collected.- Returns:
- see above
-
-