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 handled
      void 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 message
        errorText - The error text
        throwable - 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 message
        info - The information message from the dictionary