public interface InteractiveError
InteractiveErrors provide a semantic link between the
data- and the presentation-layer. Usually, the data is verified
at the data-layer and then decorated at the presentation-layer
by examining the error (e.g. assign a GUI-component).
The TooltipAndErrorPanel is able to deal with a list
of InteractiveErrors.
| Modifier and Type | Method and Description |
|---|---|
String |
getErrorCode()
Gets the optional error code.
|
FormComponent |
getFormComponent()
Gets the related swing GUI-component.
|
org.tentackle.log.Logger.Level |
getLevel()
Gets the severity level.
|
String |
getText()
Gets the error message.
|
Object |
getUiComponent()
Gets the related GUI-component.
|
org.tentackle.validate.ValidationResult |
getValidationResult()
Gets the optional validation result.
|
void |
setErrorCode(String errorCode)
Sets the optional error code.
|
void |
setLevel(org.tentackle.log.Logger.Level level)
Sets the severity level.
|
void |
setText(String text)
Sets the error message.
|
void |
setUiComponent(Object uiComponent)
Sets the related GUI-component.
|
void |
setValidationResult(org.tentackle.validate.ValidationResult validationResult)
Sets the optional validation result.
|
void |
showComponent()
Shows the component to the user.
The default implementation invokes FormComponent.requestFocusLater(). |
org.tentackle.log.Logger.Level getLevel()
Logger.Level.WARNING or Logger.Level.SEVEREString getText()
String getErrorCode()
FormComponent getFormComponent()
Object getUiComponent()
void showComponent()
FormComponent.requestFocusLater().
Applications may override this method to switch tabs, point to rows in tables, etc...
org.tentackle.validate.ValidationResult getValidationResult()
void setErrorCode(String errorCode)
errorCode - the error code.void setLevel(org.tentackle.log.Logger.Level level)
level - usually one of Logger.Level.WARNING or Logger.Level.SEVEREvoid setText(String text)
text - the error textvoid setUiComponent(Object uiComponent)
uiComponent - the component, null if nonevoid setValidationResult(org.tentackle.validate.ValidationResult validationResult)
validationResult - the resultTentackle - a domain driven enterprise framework