Class MainFrameComponentFactory

  • All Implemented Interfaces:
    java.io.Serializable

    public class MainFrameComponentFactory
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • 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

        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.