- java.lang.Object
-
- org.tentackle.fx.rdc.DefaultInteractiveErrorFactory
-
- All Implemented Interfaces:
InteractiveErrorFactory
@Service(InteractiveErrorFactory.class) public class DefaultInteractiveErrorFactory extends java.lang.Object implements InteractiveErrorFactory
Default interactive error factory.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description DefaultInteractiveErrorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractiveErrorcreateInteractiveError(boolean warning, java.lang.String text, java.lang.String errorCode, org.tentackle.validate.ValidationResult validationResult, org.tentackle.fx.FxControl control)Creates an interactive error explicitly.InteractiveErrorcreateInteractiveError(java.util.TreeSet<org.tentackle.validate.ValidationMapper> mappers, org.tentackle.bind.Binder binder, org.tentackle.validate.ValidationResult validationResult)Creates an interactive error from a validation result.
-
-
-
Method Detail
-
createInteractiveError
public InteractiveError createInteractiveError(java.util.TreeSet<org.tentackle.validate.ValidationMapper> mappers, org.tentackle.bind.Binder binder, org.tentackle.validate.ValidationResult validationResult)
Description copied from interface:InteractiveErrorFactoryCreates an interactive error from a validation result.- Specified by:
createInteractiveErrorin interfaceInteractiveErrorFactory- Parameters:
mappers- optional mappers to map the validation path to a binding pathbinder- the bindervalidationResult- the validation result- Returns:
- the interactive error
-
createInteractiveError
public InteractiveError createInteractiveError(boolean warning, java.lang.String text, java.lang.String errorCode, org.tentackle.validate.ValidationResult validationResult, org.tentackle.fx.FxControl control)
Description copied from interface:InteractiveErrorFactoryCreates an interactive error explicitly.- Specified by:
createInteractiveErrorin interfaceInteractiveErrorFactory- Parameters:
warning- true if just a warning, false if errortext- the error texterrorCode- the optional error codevalidationResult- the validation resultcontrol- the optional UI component related to the error, null if none- Returns:
- the error
-
-