Class AbstractEditErrorHandler
java.lang.Object
org.eclipse.nebula.widgets.nattable.edit.editor.AbstractEditErrorHandler
- All Implemented Interfaces:
IEditErrorHandler
- Direct Known Subclasses:
DialogErrorHandling,DiscardValueErrorHandling,LoggingErrorHandling,RenderErrorHandling
Abstract implementation of
IEditErrorHandler that by default calls
the underlying IEditErrorHandler to handle the error. This allows
chaining of IEditErrorHandlers to support multiple error handling
behaviour, e.g. displaying the error in a dialog and log the error.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayError(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.voiddisplayError(ICellEditor cellEditor, IConfigRegistry configRegistry, Exception e) If an error occurs on conversion/validation of data, this method will be called for showing that error to the user.voidremoveError(ICellEditor cellEditor) Will remove styling or other decorations that indicate that an error occurred.
-
Field Details
-
underlyingErrorHandler
The underlyingIEditErrorHandler
-
-
Constructor Details
-
AbstractEditErrorHandler
- Parameters:
underlyingErrorHandler- The underlyingIEditErrorHandler
-
-
Method Details
-
removeError
Will remove styling or other decorations that indicate that an error occurred. Only necessary to implement if the error handler adds special styling or decorations on error.This implementation will call its underlying
IEditErrorHandler.- Specified by:
removeErrorin interfaceIEditErrorHandler- Parameters:
cellEditor- TheICellEditorto remove the error styling from.
-
displayError
If an error occurs on conversion/validation of data, this method will be called for showing that error to the user. Usually the message contained within the givenExceptionwill be shown to the user.This implementation will call its underlying
IEditErrorHandler.- Specified by:
displayErrorin interfaceIEditErrorHandler- Parameters:
cellEditor- TheICellEditoron which the conversion/validation error occurred. Needed to add error styling or special handling.e- TheExceptionthat contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.
-
displayError
If an error occurs on conversion/validation of data, this method will be called for showing that error to the user. Usually the message contained within the givenExceptionwill be shown to the user.This implementation will call its underlying
IEditErrorHandler.- Specified by:
displayErrorin interfaceIEditErrorHandler- Parameters:
cellEditor- TheICellEditoron which the conversion/validation error occurred. Needed to add error styling or special handling.configRegistry- TheIConfigRegistryto get additional context information.e- TheExceptionthat contains information about the conversion/validation error. Used to show a more detailed description on the error to the user.
-