public interface IEditErrorHandler
IEditErrorHandler
will be used if on data conversion or validation
while editing via ICellEditor
an error occurs. Such a handler is usually
registered in the IConfigRegistry
, using the EditConfigAttributes
.
For some ICellEditor
s they are also used for just in time conversion/validation
to render the wrong input immediately for feedback to the user. This is done e.g. in
the TextCellEditor
.
EditConfigAttributes.CONVERSION_ERROR_HANDLER
,
EditConfigAttributes.VALIDATION_ERROR_HANDLER
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.
|
void removeError(ICellEditor cellEditor)
cellEditor
- The ICellEditor
to remove the error styling from.void displayError(ICellEditor cellEditor, Exception e)
Exception
will be shown to the user.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.