public class DefaultMessageHandler extends Object implements MessageHandler
| Constructor and Description |
|---|
DefaultMessageHandler(JFrame ownerFrame)
Constructor for the message handler.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handleError(String title,
String errorText,
Throwable throwable)
Show an error .
|
void |
handleException(Throwable throwable)
handle an exception however it should be handled
|
void |
handleInformation(Container parent,
String title,
String info)
Show information
|
public DefaultMessageHandler(JFrame ownerFrame)
ownerFrame - The frame that should own the Swing message dialogs (to avoid them shown behind and locking)public void handleError(String title, String errorText, Throwable throwable)
handleError in interface MessageHandlertitle - The title of the error messageerrorText - The error textthrowable - The exception causing the error, can not be nullpublic void handleException(Throwable throwable)
handleException in interface MessageHandlerthrowable - The exception causing the error, can not be nullpublic void handleInformation(Container parent, String title, String info)
handleInformation in interface MessageHandlerparent - frame (based on the spell checker dialog parent frame)title - The title of the information messageinfo - The information message from the dictionaryCopyright © 2016. All rights reserved.