public class DefaultMessageHandler extends java.lang.Object implements MessageHandler
Constructor and Description |
---|
DefaultMessageHandler(javax.swing.JFrame ownerFrame)
Constructor for the message handler.
|
Modifier and Type | Method and 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
|
public DefaultMessageHandler(javax.swing.JFrame ownerFrame)
ownerFrame
- The frame that should own the Swing message dialogs (to avoid them shown behind and locking)public void handleError(java.lang.String title, java.lang.String errorText, java.lang.Throwable throwable)
handleError
in interface MessageHandler
title
- The title of the error messageerrorText
- The error textthrowable
- The exception causing the error, can not be nullpublic void handleException(java.lang.Throwable throwable)
handleException
in interface MessageHandler
throwable
- The exception causing the error, can not be nullpublic void handleInformation(java.awt.Container parent, java.lang.String title, java.lang.String info)
handleInformation
in interface MessageHandler
parent
- frame (based on the spell checker dialog parent frame)title
- The title of the information messageinfo
- The information message from the dictionaryCopyright © 2005 - 2013 i-net software. All Rights Reserved.