|
|
||||||||
| 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.Frame
javax.swing.JFrame
PIRL.Conductor.Maestro.Error_Report
public class Error_Report
An Error_Report is a window for reporting error messages.
The window title may be specified or the default "Error Report" may be used.
If the error icon can be loaded it is displayed in the upper-left corner of the window pane.
A short error message is displayed at the top of the window, to the right of the error icon.
A long error report is displayed in a scoll pane below the error message. The error report may be provided as text or as an Exception from which a stack trace report will be obtained.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static String |
DEFAULT_TITLE
The default window title. |
static String |
Error_Icon_Name
The filename for the error icon image. |
static String |
ID
|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| 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, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
Error_Report(String title,
String message,
Exception exception,
Frame owner)
Constructs an Error_Report using an optional Exception report. |
|
Error_Report(String title,
String message,
Frame owner)
Constructs an Error_Report with only a message. |
|
Error_Report(String title,
String message,
String report,
Frame owner)
Constructs an Error_Report using optional report text. |
|
| Method Summary |
|---|
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String ID
public static final String DEFAULT_TITLE
public static String Error_Icon_Name
The filename will be sought in the Icons sibling directory relative to the location of this class.
| Constructor Detail |
|---|
public Error_Report(String title,
String message,
String report,
Frame owner)
title - The String to be used as the title of the window.
If null the title will be "Error Report".message - The message to be displayed at the top of the window.report - The error report to be displayed in a scroll pane.
If null no scroll pane will be displayed.owner - The parent Frame opver which the window will be
centered. If null the window will be centered on the screen.
public Error_Report(String title,
String message,
Exception exception,
Frame owner)
title - The String to be used as the title of the window.
If null the title will be "Error Report".message - The message to be displayed at the top of the window.exception - The Exception to have its stack trace displayed
in a scroll pane. If null no scroll pane will be displayed.owner - The parent Frame opver which the window will be
centered. If null the window will be centered on the screen.
public Error_Report(String title,
String message,
Frame owner)
title - The String to be used as the title of the window.
If null the title will be "Error Report".message - The message to be displayed at the top of the window.owner - The parent Frame opver which the window will be
centered. If null the window will be centered on the screen.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||