Package com.inet.jortho
Class DefaultMessageHandler
- java.lang.Object
-
- com.inet.jortho.DefaultMessageHandler
-
- All Implemented Interfaces:
MessageHandler
public class DefaultMessageHandler extends java.lang.Object implements MessageHandler
Default implementation of the message handler provider that shows the messages in Swing dialogs and printing stacktraces to the console
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JFrameownerFrame
-
Constructor Summary
Constructors Constructor Description DefaultMessageHandler(javax.swing.JFrame ownerFrame)Constructor for the message handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleError(java.lang.String title, java.lang.String errorText, java.lang.Throwable throwable)Show an error .voidhandleException(java.lang.Throwable throwable)handle an exception however it should be handledvoidhandleInformation(java.awt.Container parent, java.lang.String title, java.lang.String info)Show information
-
-
-
Method Detail
-
handleError
public void handleError(java.lang.String title, java.lang.String errorText, java.lang.Throwable throwable)Show an error .- Specified by:
handleErrorin interfaceMessageHandler- Parameters:
title- The title of the error messageerrorText- The error textthrowable- The exception causing the error, can not be null
-
handleException
public void handleException(java.lang.Throwable throwable)
handle an exception however it should be handled- Specified by:
handleExceptionin interfaceMessageHandler- Parameters:
throwable- The exception causing the error, can not be null
-
handleInformation
public void handleInformation(java.awt.Container parent, java.lang.String title, java.lang.String info)Show information- Specified by:
handleInformationin interfaceMessageHandler- Parameters:
parent- frame (based on the spell checker dialog parent frame)title- The title of the information messageinfo- The information message from the dictionary
-
-