Package edu.umd.cs.findbugs.gui2
Class MainFrameComponentFactory
- java.lang.Object
-
- edu.umd.cs.findbugs.gui2.MainFrameComponentFactory
-
- All Implemented Interfaces:
java.io.Serializable
public class MainFrameComponentFactory extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classMainFrameComponentFactory.BugSummaryMouseListenerListens for when cursor is over the label and when it is clicked.private static classMainFrameComponentFactory.InitializeGUI
-
Field Summary
Fields Modifier and Type Field Description private booleanlistenerAddedprivate static java.util.logging.LoggerLOGGERprivate MainFramemainFrameprivate java.net.URLsourceLink
-
Constructor Summary
Constructors Constructor Description MainFrameComponentFactory(MainFrame mainFrame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) java.awt.ComponentbugSummaryComponent(BugAnnotation value, BugInstance bug)java.awt.ComponentbugSummaryComponent(java.lang.String str, BugInstance bug)Creates bug summary component.(package private) javax.swing.JPanelcreateSourceCodePanel()Creates the source code panel, but does not put anything in it.(package private) javax.swing.JPanelcreateSourceSearchPanel()(package private) voidinitializeGUI()private voidremoveLink(javax.swing.JComponent component)(package private) voidsetSourceTab(java.lang.String title, BugInstance bug)Sets the title of the source tabs for either docking or non-docking versions.private voidsetStyleSheets()private booleansourceCodeExists(SourceLineAnnotation note)(package private) javax.swing.JPanelstatusBar()(package private) javax.swing.JSplitPanesummaryTab()
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
mainFrame
private final MainFrame mainFrame
-
sourceLink
private java.net.URL sourceLink
-
listenerAdded
private boolean listenerAdded
-
-
Constructor Detail
-
MainFrameComponentFactory
public MainFrameComponentFactory(MainFrame mainFrame)
-
-
Method Detail
-
statusBar
javax.swing.JPanel statusBar()
-
summaryTab
javax.swing.JSplitPane summaryTab()
-
setStyleSheets
private void setStyleSheets()
-
createSourceCodePanel
javax.swing.JPanel createSourceCodePanel()
Creates the source code panel, but does not put anything in it.
-
createSourceSearchPanel
javax.swing.JPanel createSourceSearchPanel()
-
setSourceTab
void setSourceTab(java.lang.String title, @CheckForNull BugInstance bug)Sets the title of the source tabs for either docking or non-docking versions.
-
removeLink
private void removeLink(javax.swing.JComponent component)
-
initializeGUI
void initializeGUI()
-
bugSummaryComponent
java.awt.Component bugSummaryComponent(BugAnnotation value, BugInstance bug)
-
bugSummaryComponent
public java.awt.Component bugSummaryComponent(java.lang.String str, BugInstance bug)Creates bug summary component. If obj is a string will create a JLabel with that string as it's text and return it. If obj is an annotation will return a JLabel with the annotation's toString(). If that annotation is a SourceLineAnnotation or has a SourceLineAnnotation connected to it and the source file is available will attach a listener to the label.
-
sourceCodeExists
private boolean sourceCodeExists(@Nonnull SourceLineAnnotation note)
-
-