java.lang.Object
org.tentackle.fx.DefaultInteractiveErrorFactory
- All Implemented Interfaces:
InteractiveErrorFactory
@Service(InteractiveErrorFactory.class)
public class DefaultInteractiveErrorFactory
extends Object
implements InteractiveErrorFactory
Default interactive error factory.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInteractiveError(boolean warning, String text, String errorCode, ValidationResult validationResult, FxControl control) Creates an interactive error explicitly.createInteractiveError(NavigableSet<ValidationMapper> mappers, Binder binder, ValidationResult validationResult) Creates an interactive error from a validation result.
-
Constructor Details
-
DefaultInteractiveErrorFactory
public DefaultInteractiveErrorFactory()Creates the interactive error factory.
-
-
Method Details
-
createInteractiveError
public InteractiveError createInteractiveError(boolean warning, String text, String errorCode, ValidationResult validationResult, 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