Class DefaultInteractiveErrorFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      InteractiveError createInteractiveError​(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.
      InteractiveError createInteractiveError​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultInteractiveErrorFactory

        public DefaultInteractiveErrorFactory()
    • 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: InteractiveErrorFactory
        Creates an interactive error from a validation result.
        Specified by:
        createInteractiveError in interface InteractiveErrorFactory
        Parameters:
        mappers - optional mappers to map the validation path to a binding path
        binder - the binder
        validationResult - 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: InteractiveErrorFactory
        Creates an interactive error explicitly.
        Specified by:
        createInteractiveError in interface InteractiveErrorFactory
        Parameters:
        warning - true if just a warning, false if error
        text - the error text
        errorCode - the optional error code
        validationResult - the validation result
        control - the optional UI component related to the error, null if none
        Returns:
        the error