Class NestedFormatViewerPanel

    • Field Detail

      • m_Tree

        protected BaseTree m_Tree
        the tree for displaying the nested format.
      • m_FileChooser

        protected BaseFileChooser m_FileChooser
        the file chooser for loading the files in nested format.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
    • Constructor Detail

      • NestedFormatViewerPanel

        public NestedFormatViewerPanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • createPopup

        protected BasePopupMenu createPopup​(MouseEvent e)
        Creates a popup for the specified mouse event.
        e - the event that triggered the popup
        the generated menu, null if none available
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        the menu bar
      • updateMenu

        protected void updateMenu()
        updates the enabled state of the menu items.
      • openFile

        protected void openFile()
        Prompts user with file chooser to select file.
      • buildTree

        protected void buildTree​(BaseTreeNode parent,
                                 List nested)
        Builds the tree.
        parent - the current parent
        nested - the nested list to add to the parent
      • openFile

        protected void openFile​(File file)
        Loads the specified file in nested format and displays it in the tree.
        file - the file to load
      • main

        public static void main​(String[] args)
        For testing only.
        args - first parameter can be file in flow format