-
- All Known Implementing Classes:
DefaultInteractiveError
public interface InteractiveErrorDescription of an error.InteractiveErrors provide a link between aValidationResultand a UI-control.- Author:
- harald
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.tentackle.fx.FxControlgetControl()Gets the related FX control.java.lang.StringgetErrorCode()Gets the optional error code.java.lang.StringgetText()Gets the error message.org.tentackle.validate.ValidationResultgetValidationResult()Gets the optional validation result.booleanisWarning()Returns whether this is just a warning.voidshowControl()Shows the control to the user.
The default implementation requests the focus.
-
-
-
Method Detail
-
isWarning
boolean isWarning()
Returns whether this is just a warning.- Returns:
- true if warning, false if error
-
getText
java.lang.String getText()
Gets the error message.- Returns:
- the error text
-
getErrorCode
java.lang.String getErrorCode()
Gets the optional error code.- Returns:
- the error code
-
getControl
org.tentackle.fx.FxControl getControl()
Gets the related FX control.- Returns:
- the control, null if nothing related
-
showControl
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
org.tentackle.validate.ValidationResult getValidationResult()
Gets the optional validation result.- Returns:
- the result, null if none
-
-