Class PropertiesViewerPanel

    • Field Detail

      • m_ComboBoxKeys

        protected BaseComboBox m_ComboBoxKeys
        the combobox with the properties keys.
      • m_PanelSearch

        protected SearchPanel m_PanelSearch
        the search panel.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_MenuItemOpen

        protected JMenuItem m_MenuItemOpen
        the "open" menu item.
      • m_MenuLoadRecent

        protected JMenu m_MenuLoadRecent
        the "load recent" submenu.
      • m_MenuItemSave

        protected JMenuItem m_MenuItemSave
        the "save" menu item.
      • m_MenuItemClose

        protected JMenuItem m_MenuItemClose
        the "close" menu item.
      • m_CurrentFile

        protected File m_CurrentFile
        the current props file.
      • m_FileChooser

        protected BaseFileChooser m_FileChooser
        the file chooser for loading external props files.
    • Constructor Detail

      • PropertiesViewerPanel

        public PropertiesViewerPanel()
    • 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
      • finishInit

        protected void finishInit()
        Finishes the initialization.
        Overrides:
        finishInit in class BasePanel
      • 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
      • checkForModified

        protected boolean checkForModified()
        Returns whether we can proceed with the operation or not, depending on whether the user saved the flow or discarded the changes.
        Returns:
        true if safe to proceed
      • updateMenu

        protected void updateMenu()
        Updates the menu items.
      • updateTitle

        protected void updateTitle()
        Updates the title of the dialog.
      • close

        protected void close()
        Closes the dialog or frame.
      • open

        protected void open()
        Presents the user with an input dialog to enter the props file.
      • open

        protected void open​(File file)
        Opens the specified properties file and displays it.
        Parameters:
        file - the file to load and display
      • open

        protected void open​(Properties props)
        Displays the properties in the table.
        Parameters:
        props - the properties to display
      • save

        protected void save()
        Saves the current properties.
      • tableChanged

        public void tableChanged​(TableModelEvent e)
        This fine grain notification tells listeners the exact range of cells, rows, or columns that changed.
        Specified by:
        tableChanged in interface TableModelListener
        Parameters:
        e - the event
      • hasSendToItem

        public boolean hasSendToItem​(Class[] cls)
        Checks whether something to send is available.
        Specified by:
        hasSendToItem in interface SendToActionSupporter
        Parameters:
        cls - the requested classes
        Returns:
        true if an object is available for sending