public class DefaultInteractiveError extends Object implements InteractiveError
| Constructor and Description |
|---|
DefaultInteractiveError(boolean warning,
String text,
String errorCode,
org.tentackle.validate.ValidationResult validationResult,
FxControl control)
Creates an interactive error.
|
DefaultInteractiveError(InteractiveError error)
Creates an error from another error.
Useful to override methods in anonymous inner classes. |
DefaultInteractiveError(org.tentackle.validate.ValidationResult validationResult,
FxControl control)
Creates an interactive error.
|
| Modifier and Type | Method and Description |
|---|---|
FxControl |
getControl()
Gets the related FX control.
|
String |
getErrorCode()
Gets the optional error code.
|
String |
getText()
Gets the error message.
|
org.tentackle.validate.ValidationResult |
getValidationResult()
Gets the optional validation result.
|
boolean |
isWarning()
Returns whether this is just a warning.
|
void |
showControl()
Shows the control to the user.
The default implementation requests the focus. |
String |
toString() |
public DefaultInteractiveError(boolean warning,
String text,
String errorCode,
org.tentackle.validate.ValidationResult validationResult,
FxControl control)
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 nonepublic DefaultInteractiveError(org.tentackle.validate.ValidationResult validationResult,
FxControl control)
validationResult - the validation resultcontrol - the optional UI component related to the error, null if nonepublic DefaultInteractiveError(InteractiveError error)
error - the errorpublic boolean isWarning()
InteractiveErrorisWarning in interface InteractiveErrorpublic String getText()
InteractiveErrorgetText in interface InteractiveErrorpublic String getErrorCode()
InteractiveErrorgetErrorCode in interface InteractiveErrorpublic FxControl getControl()
InteractiveErrorgetControl in interface InteractiveErrorpublic void showControl()
InteractiveErrorApplications may override this method to switch tabs, point to rows in tables, etc...
showControl in interface InteractiveErrorpublic org.tentackle.validate.ValidationResult getValidationResult()
InteractiveErrorgetValidationResult in interface InteractiveErrorTentackle - distributed, domain- and model-driven