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.
        Overrides:
        initialize in class BasePanel
      • initGUI

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

        protected BasePopupMenu createPopup​(MouseEvent e)
        Creates a popup for the specified mouse event.
        Parameters:
        e - the event that triggered the popup
        Returns:
        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
        Returns:
        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.
        Parameters:
        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.
        Parameters:
        file - the file to load
      • main

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