Package com.inet.jortho
Interface MessageHandler
-
- All Known Implementing Classes:
DefaultMessageHandler
public interface MessageHandler
Interface to be implemented by a user of the spellchecker that provides the ability to show/log errors and information messages as required by applications using the dictionary
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
handleError(java.lang.String title, java.lang.String errorText, java.lang.Throwable throwable)
Show an error .void
handleException(java.lang.Throwable throwable)
handle an exception however it should be handledvoid
handleInformation(java.awt.Container parent, java.lang.String title, java.lang.String info)
Show information
-
-
-
Method Detail
-
handleError
void handleError(java.lang.String title, java.lang.String errorText, java.lang.Throwable throwable)
Show an error .- Parameters:
title
- The title of the error messageerrorText
- The error textthrowable
- The exception causing the error, can not be null
-
handleException
void handleException(java.lang.Throwable throwable)
handle an exception however it should be handled- Parameters:
throwable
- The exception causing the error, can not be null
-
handleInformation
void handleInformation(java.awt.Container parent, java.lang.String title, java.lang.String info)
Show information- Parameters:
parent
- frame (based on the spell checker dialog parent frame)title
- The title of the information messageinfo
- The information message from the dictionary
-
-