|
|||||||||||
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
wt.clients.gui.ExceptionDialog
Dialog used for displaying throwables. This dialog contains a
wrapping label for displaying either a specified message or
the localized message of the throwable, a button which, when
pressed, generates an HTML page containing the stack trace of
the given throwable, and a button to close the dialog.
Supported API:true
Extendable: false
Nested Class Summary | |
(package private) class |
ExceptionDialog.SymAction
|
(package private) class |
ExceptionDialog.SymKey
|
(package private) class |
ExceptionDialog.SymWindow
|
Nested classes inherited from class java.awt.Dialog |
Dialog.AccessibleAWTDialog |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
(package private) Panel |
buttonPanel
|
private ThreadGroup |
contextGroup
|
private static boolean |
DEBUG
|
(package private) Button |
detailsButton
|
(package private) JTextArea |
exceptionLabel
|
(package private) boolean |
fComponentsAdjusted
|
(package private) symantec.itools.awt.shape.HorizontalLine |
horizontalLine1
|
private String |
messageString
|
(package private) Button |
okButton
|
private static ResourceBundle |
resources
|
private static String |
RESOURCES
|
private Throwable |
throwable
|
private String |
traceTitle
|
private static String |
versionID
|
Fields inherited from class java.awt.Dialog |
|
Fields inherited from class java.awt.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
ExceptionDialog(Component parent,
boolean modal,
Exception e)
Deprecated. replaced with constructor which takes in a throwable instead of an exception |
|
ExceptionDialog(Component parent,
boolean modal,
Exception e,
String message)
Deprecated. replaced with constructor which takes a throwable instead of an exception |
|
ExceptionDialog(Component parent,
boolean modal,
Throwable t)
Constructor for Exception Dialog. |
|
ExceptionDialog(Component parent,
boolean modal,
Throwable t,
String message)
Constructor for Exception Dialog. |
|
ExceptionDialog(Component parent,
String title,
boolean modal)
Constructor for Exception Dialog. |
|
ExceptionDialog(Component parent,
String title,
boolean modal,
Exception e,
String message)
Deprecated. replaced with constructor which takes a throwable instead of an exception |
|
ExceptionDialog(Component parent,
String title,
boolean modal,
Throwable t,
String message)
Constructor for Exception Dialog. |
|
ExceptionDialog(Frame parent,
boolean modal)
Constructor for ExceptionDialog |
|
ExceptionDialog(Frame parent,
boolean modal,
Exception e,
String message)
Deprecated. replaced with constructor that requires a throwable instead of an exception |
|
ExceptionDialog(Frame parent,
boolean modal,
Throwable t,
String message)
Constructor for Exception Dialog. |
|
ExceptionDialog(Frame parent,
String title,
boolean modal)
Constructor for Exception Dialog. |
|
ExceptionDialog(Frame parent,
String title,
boolean modal,
Exception e,
String message)
Deprecated. replaced with constructor which takes in a Throwable instead of an exception |
|
ExceptionDialog(Frame parent,
String title,
boolean modal,
Throwable t,
String message)
Constructor for Exception Dialog. |
Method Summary | |
void |
addNotify()
|
(package private) void |
detailsButton_ActionPerformed(ActionEvent event)
|
(package private) void |
detailsButton_KeyPressed(KeyEvent event)
|
(package private) void |
Dialog1_WindowClosing(WindowEvent event)
|
private WTContext |
getContext()
Convenience method to retrieve the WTContext for this
dialog. |
Exception |
getException()
Deprecated. replaced with getThrowable |
protected static Frame |
getFrame(Component component)
Attempts to find a Frame somewhere in the component
hierarchy of the given component. |
String |
getMessageString()
Returns the string message displayed by this dialog. |
Throwable |
getThrowable()
Returns the throwable whose stack trace is displayed by this dialog. |
static char[] |
getTraceAsCharArray(Throwable exception)
Returns the stack trace of the given throwable as a character array. |
String |
getTraceTitle()
Returns the string being used as the title of the HTML stack trace page. |
protected void |
handleDetailsCommand()
Invoked in response to the Show Details button being pressed or ENTER key pressed. |
protected void |
handleOkCommand()
Invoked in response to the OK button being pressed or ENTER key pressed. |
private void |
initResources()
|
private void |
localize()
|
(package private) void |
okButton_ActionPerformed(ActionEvent event)
Event callback invoked when the OK button is pressed. |
(package private) void |
okButton_KeyPressed(KeyEvent event)
Event callback invoked when a key is pressed with the OK button in focus. |
protected void |
setDisplayLocation()
|
void |
setException(Throwable t)
Deprecated. replaced with setThrowable |
void |
setMessageString(String s)
Sets the string message to be displayed in this dialog. |
void |
setThrowable(Throwable t)
Sets the throwable whose stack trace is displayed by this dialog. |
void |
setTraceTitle(String s)
Sets the string title displayed on the HTML stack trace page. |
void |
setVisible(boolean b)
Shows or hides the component depending on the boolean flag b. |
void |
show()
|
Methods inherited from class java.awt.Dialog |
dispose, getAccessibleContext, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setResizable, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String versionID
boolean fComponentsAdjusted
JTextArea exceptionLabel
symantec.itools.awt.shape.HorizontalLine horizontalLine1
Panel buttonPanel
Button okButton
Button detailsButton
private ThreadGroup contextGroup
private Throwable throwable
private String messageString
private String traceTitle
private static String RESOURCES
private static ResourceBundle resources
private static boolean DEBUG
Constructor Detail |
public ExceptionDialog(Frame parent, boolean modal)
public ExceptionDialog(Frame parent, String title, boolean modal)
parent
- the Frame owner of this dialogtitle
- the String to be displayed as the dialog titlemodal
- if true, dialog blocks input into the parent
frame when shown.public ExceptionDialog(Frame parent, boolean modal, Exception e, String message)
parent
- the Frame owner of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.e
- the exception whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Frame parent, boolean modal, Throwable t, String message)
parent
- the Frame owner of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.t
- the Throwable whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Frame parent, String title, boolean modal, Exception e, String message)
parent
- the Frame owner of this dialogtitle
- the String to display as the title of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.e
- the exception whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Frame parent, String title, boolean modal, Throwable t, String message)
parent
- the Frame owner of this dialogtitle
- the String to display as the title of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.message
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Component parent, String title, boolean modal)
parent
- the Component owner of this dialogtitle
- the String to be displayed as the dialog titlemodal
- if true, dialog blocks input into the parent
frame when shown.public ExceptionDialog(Component parent, boolean modal, Exception e)
parent
- the Component owner of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.e
- the exception whose stack trace is displayed by
this dialogpublic ExceptionDialog(Component parent, boolean modal, Throwable t)
parent
- the Component owner of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.t
- the throwable whose stack trace is displayed by
this dialogpublic ExceptionDialog(Component parent, boolean modal, Exception e, String message)
parent
- the Component owner of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.e
- the exception whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Component parent, boolean modal, Throwable t, String message)
parent
- the Component owner of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.t
- the throwable whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Component parent, String title, boolean modal, Exception e, String message)
parent
- the Component owner of this dialogtitle
- the String title of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.e
- the exception whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.public ExceptionDialog(Component parent, String title, boolean modal, Throwable t, String message)
parent
- the Component owner of this dialogtitle
- the String title of this dialogmodal
- if true, dialog blocks input into the parent
frame when shown.t
- the throwable whose stack trace is displayed by
this dialogmessage
- the message string to be displayed as the text of
this dialog.Method Detail |
private void initResources() throws MissingResourceException
MissingResourceException
private void localize()
public void addNotify()
public void setException(Throwable t)
t
- the throwable whose stack trace is displayed by this dialogpublic void setThrowable(Throwable t)
t
- the throwable whose stack trace is displayed by this dialogpublic Exception getException()
public Throwable getThrowable()
public void setMessageString(String s)
s
- the string message to be displayed in this dialog.public String getMessageString()
public void setTraceTitle(String s)
s
- the string title of the HTML stack trace page.public String getTraceTitle()
public void setVisible(boolean b)
b
- if true, show the component; otherwise, hide the component.Component.isVisible()
public void show()
protected void setDisplayLocation()
void Dialog1_WindowClosing(WindowEvent event)
protected void handleOkCommand()
void okButton_ActionPerformed(ActionEvent event)
void okButton_KeyPressed(KeyEvent event)
event
- the KeyEvent resulting in this method being invoked.protected static Frame getFrame(Component component)
Frame
somewhere in the component
hierarchy of the given component. If no frame is found, null is
returned.
component
- the component for which a parent Frame is found
private WTContext getContext()
WTContext
for this
dialog.
WTContext
for this dialogvoid detailsButton_ActionPerformed(ActionEvent event)
protected void handleDetailsCommand()
void detailsButton_KeyPressed(KeyEvent event)
public static char[] getTraceAsCharArray(Throwable exception)
exception
- the throwable whose stack trace is returned as
an array
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |