Class MainFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MainFrame extends JFrame
Displays information about a parse tree. The user can change the file that is parsed and displayed using a JFileChooser.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      A unique serial version identifier.
      See Also:
    • model

      private final transient MainFrameModel model
      Checkstyle frame model.
    • reloadAction

      private final MainFrame.ReloadAction reloadAction
      Reload action.
    • textArea

      private JTextArea textArea
      Code text area.
    • xpathTextArea

      private JTextArea xpathTextArea
      Xpath text area.
    • treeTable

      private TreeTable treeTable
      Tree table.
  • Constructor Details

    • MainFrame

      public MainFrame()
      Create a new MainFrame.
  • Method Details

    • createContent

      private void createContent()
      Create content of this MainFrame.
    • createButtonsPanel

      private JPanel createButtonsPanel()
      Create buttons panel.
      Returns:
      buttons panel.
    • createXpathButtonsPanel

      private JPanel createXpathButtonsPanel()
      Create xpath buttons panel.
      Returns:
      xpath buttons panel.
    • openFile

      public void openFile(File sourceFile)
      Open file and load it.
      Parameters:
      sourceFile - the file to open.