public abstract class AbstractEditErrorHandler extends Object implements IEditErrorHandler
IEditErrorHandler
that by default calls
the underlying IEditErrorHandler
to handle the error. This allows
chaining of IEditErrorHandler
s to support multiple error handling
behaviour, e.g. displaying the error in a dialog and log the error.Modifier and Type | Field and Description |
---|---|
protected IEditErrorHandler |
underlyingErrorHandler
The underlying
IEditErrorHandler |
Constructor and Description |
---|
AbstractEditErrorHandler(IEditErrorHandler underlyingErrorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
displayError(ICellEditor cellEditor,
Exception e)
If an error occurs on conversion/validation of data, this method will be called
for showing that error to the user.
|
void |
removeError(ICellEditor cellEditor)
Will remove styling or other decorations that indicate that an error occurred.
|
protected IEditErrorHandler underlyingErrorHandler
IEditErrorHandler
public AbstractEditErrorHandler(IEditErrorHandler underlyingErrorHandler)
underlyingErrorHandler
- The underlying IEditErrorHandler
public void removeError(ICellEditor cellEditor)
This implementation will call its underlying IEditErrorHandler
.
removeError
in interface IEditErrorHandler
cellEditor
- The ICellEditor
to remove the error styling from.public void displayError(ICellEditor cellEditor, Exception e)
Exception
will be shown to the user.
This implementation will call its underlying IEditErrorHandler
.
displayError
in interface IEditErrorHandler
cellEditor
- The ICellEditor
on which the conversion/validation error
occurred. Needed to add error styling or special handling.e
- The Exception
that contains information about the conversion/validation
error. Used to show a more detailed description on the error to the user.Copyright © 2013. All Rights Reserved.