|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.apache.batik.util.gui.JErrorPane
public class JErrorPane
This class represents a dialog to display an error (message + Exception).
Nested Class Summary | |
---|---|
protected class |
JErrorPane.OKButtonAction
The action associated with the 'OK' button. |
protected class |
JErrorPane.ShowDetailButtonAction
The action associated with the 'Show Detail' button. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
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 | |
---|---|
protected ButtonFactory |
bf
The button factory. |
protected static ResourceBundle |
bundle
The resource bundle |
protected JComponent |
detailsArea
The text area used to show the stack trace. |
protected boolean |
isDetailShown
This flag bit indicates whether or not the stack trace is shown. |
protected Map |
listeners
The map that contains the listeners |
protected String |
msg
The error message. |
protected static ResourceManager |
resources
The resource manager |
protected static String |
RESOURCES
The resource file name |
protected JButton |
showDetailButton
The button used to show or not the details. |
protected String |
stacktrace
The stack trace. |
protected JPanel |
subpanel
The sub panel that contains the stack trace text area. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
JErrorPane(Throwable th,
int type)
Constructs a new JErrorPane. |
Method Summary | |
---|---|
protected JPanel |
createButtonsPanel()
|
JDialog |
createDialog(Component owner,
String title)
|
Action |
getAction(String key)
Returns the action associated with the given string or null on error |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final String RESOURCES
protected static ResourceBundle bundle
protected static ResourceManager resources
protected String msg
protected String stacktrace
protected ButtonFactory bf
protected JComponent detailsArea
protected JButton showDetailButton
protected boolean isDetailShown
protected JPanel subpanel
protected Map listeners
Constructor Detail |
---|
public JErrorPane(Throwable th, int type)
th
- the throwable object that describes the errrortype
- the dialog typeMethod Detail |
---|
public JDialog createDialog(Component owner, String title)
protected JPanel createButtonsPanel()
public Action getAction(String key) throws MissingListenerException
getAction
in interface ActionMap
key
- the key mapped with the action to get
MissingListenerException
- if the action is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |