Top Description Fields Constructors Methods
org.apache.pdfbox.debugger.ui

public Class LogDialog

extends JDialog
Class Inheritance
Annotations
@SuppressWarnings:serial, squid:MaximumInheritanceDepth
Imports
java.awt.Color, .Container, .Frame, java.io.PrintWriter, .StringWriter, java.util.ArrayList, .List, javax.swing.JDialog, .JLabel, .JScrollPane, .JTextPane, javax.swing.text.BadLocationException, .SimpleAttributeSet, .StyleConstants, .StyledDocument

Custom log dialog.
Author
John Hewson

Field Summary

Modifier and TypeField and Description
private int
private int
private int
private static LogDialog
private final JLabel
private int
private final JScrollPane
private final JTextPane
private int
Inherited from javax.swing.JDialog:
accessibleContextrootPanerootPaneCheckingEnabled

Constructor Summary

AccessConstructor and Description
private
LogDialog(Frame owner, JLabel logLabel)

Method Summary

Modifier and TypeMethod and Description
public void
public final Container
getContentPane()

Overrides javax.swing.JDialog.getContentPane.

Implements javax.swing.RootPaneContainer.getContentPane.

Returns the contentPane object for this dialog.

public static void
init(Frame owner, JLabel logLabel)

public static LogDialog
public void
log(String name, String level, Object o, Throwable throwable)

public final void
pack()

Overrides java.awt.Window.pack.

Causes this Window to be sized to fit the preferred size and layouts of its subcomponents.

private void
Inherited from javax.swing.JDialog:
addImplcreateRootPanedialogInitgetAccessibleContextgetDefaultCloseOperationgetGlassPanegetGraphicsgetJMenuBargetLayeredPanegetRootPanegetTransferHandlerisDefaultLookAndFeelDecoratedisRootPaneCheckingEnabledparamStringprocessWindowEventremoverepaintsetContentPanesetDefaultCloseOperationsetDefaultLookAndFeelDecoratedsetGlassPanesetJMenuBarsetLayeredPanesetLayoutsetRootPanesetRootPaneCheckingEnabledsetTransferHandlerupdate

Field Detail

errorCountback to summary
private int errorCount
exceptionCountback to summary
private int exceptionCount
fatalCountback to summary
private int fatalCount
instanceback to summary
private static LogDialog instance
logLabelback to summary
private final JLabel logLabel
otherCountback to summary
private int otherCount
scrollPaneback to summary
private final JScrollPane scrollPane
textPaneback to summary
private final JTextPane textPane
warnCountback to summary
private int warnCount

Constructor Detail

LogDialogback to summary
private LogDialog(Frame owner, JLabel logLabel)

Method Detail

clearback to summary
public void clear()
getContentPaneback to summary
public final Container getContentPane()

Overrides javax.swing.JDialog.getContentPane.

Implements javax.swing.RootPaneContainer.getContentPane.

Doc from javax.swing.JDialog.getContentPane.

Returns the contentPane object for this dialog.

Returns:Container

the contentPane property

Annotations
@Override
initback to summary
public static void init(Frame owner, JLabel logLabel)
instanceback to summary
public static LogDialog instance()
logback to summary
public void log(String name, String level, Object o, Throwable throwable)
packback to summary
public final void pack()

Overrides java.awt.Window.pack.

Doc from java.awt.Window.pack.

Causes this Window to be sized to fit the preferred size and layouts of its subcomponents. The resulting width and height of the window are automatically enlarged if either of dimensions is less than the minimum size as specified by the previous call to the setMinimumSize method.

If the window and/or its owner are not displayable yet, both of them are made displayable before calculating the preferred size. The Window is validated after its size is being calculated.

Annotations
@Override
updateStatusBarback to summary
private void updateStatusBar()