Interface InteractiveError

All Known Implementing Classes:
DefaultInteractiveError

public interface InteractiveError
Description of an error.

InteractiveErrors provide a link between a ValidationResult and a UI-control.

Author:
harald
  • Method Details Link icon

    • isWarning Link icon

      boolean isWarning()
      Returns whether this is just a warning.
      Returns:
      true if warning, false if error
    • getText Link icon

      String getText()
      Gets the error message.
      Returns:
      the error text
    • getErrorCode Link icon

      String getErrorCode()
      Gets the optional error code.
      Returns:
      the error code
    • getControl Link icon

      FxControl getControl()
      Gets the related FX control.
      Returns:
      the control, null if nothing related
    • showControl Link icon

      void showControl()
      Shows the control to the user.
      The default implementation requests the focus.

      Applications may override this method to switch tabs, point to rows in tables, etc...

    • getValidationResult Link icon

      ValidationResult getValidationResult()
      Gets the optional validation result.
      Returns:
      the result, null if none