|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ExceptionDialog
public class ExceptionDialog
The exception dialog is used to display an exception and the exceptions stacktrace to the user.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary |
---|
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ExceptionDialog()
Creates a new ExceptionDialog. |
|
ExceptionDialog(Dialog parent)
|
|
ExceptionDialog(Frame parent)
|
Method Summary | |
---|---|
void |
adjustSize()
Adjusts the size of the dialog to fit the with of the contained message and stacktrace. |
Exception |
getException()
Returns the exception that was the reason for this dialog to show up. |
String |
getMessage()
Returns the message for this exception dialog. |
void |
setException(Exception e)
Sets the exception for this dialog. |
void |
setMessage(String mesg)
Sets the message for this exception dialog. |
static void |
showExceptionDialog(Component parent,
String title,
String message,
Exception e)
Shows an default dialog with the given message and title and the exceptions stacktrace in the detail area. |
static void |
showExceptionDialog(String title,
String message,
Exception e)
Deprecated. use the dialog-method that accepts a parent. |
Methods inherited from class javax.swing.JDialog |
---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExceptionDialog()
public ExceptionDialog(Frame parent)
public ExceptionDialog(Dialog parent)
Method Detail |
---|
public void adjustSize()
public void setMessage(String mesg)
mesg
- the message.public String getMessage()
public void setException(Exception e)
e
- the exception.public Exception getException()
public static void showExceptionDialog(String title, String message, Exception e)
title
- the title.message
- the message.e
- the exception.public static void showExceptionDialog(Component parent, String title, String message, Exception e)
parent
- the parent component.title
- the title.message
- the message.e
- the exception.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |