Class ViewerTabManager

    • Constructor Detail

      • ViewerTabManager

        public ViewerTabManager​(SpreadSheetViewerPanel owner)
        Initializes the tab manager.
        Parameters:
        owner - the editor panel tha the manager belongs to
    • Method Detail

      • initGUI

        protected void initGUI()
        Performs further initializations of widgets.
        Overrides:
        initGUI in class BaseTabbedPane
      • getOwner

        public SpreadSheetViewerPanel getOwner()
        Returns the editor panel that owns this tab manager.
        Returns:
        the owner
      • notifyTabs

        public void notifyTabs​(SpreadSheetPanel panel)
        Notifies all the selection aware tabs that the selection of sheet/rows has changed.
        Parameters:
        panel - the panel that triggered the notification
      • refresh

        public void refresh​(SpreadSheetPanel panel)
        Notifies all the tabs.
        Parameters:
        panel - the panel
      • addTabsSubmenu

        public void addTabsSubmenu​(JMenu menu)
        Adds all the available tabs.
        Parameters:
        menu - the menu to add the "Send to" submenu to if available
      • updateMenu

        protected void updateMenu​(JMenu menu)
        Updates the specified menu with the current enabled/disabled state of the tabs.
        Parameters:
        menu - the menu to update
      • createPropertyKey

        protected String createPropertyKey​(Class cls)
        Creates the key for the property.
        Parameters:
        cls - the tab class
        Returns:
        the property key
        See Also:
        SUFFIX_VISIBLE
      • isVisible

        public boolean isVisible​(Class cls)
        Returns whether a tab should be visible or not.
        Parameters:
        cls - the tab class
        Returns:
        true if the tab is visible by default
      • setVisible

        public void setVisible​(Class cls,
                               boolean value)
        Sets whether a tab should be visible or not.
        Parameters:
        cls - the tab class
        value - if true then the tab is made visible by default
      • setAllVisible

        public void setAllVisible​(boolean value)
        Sets whether all tabs should be visible or not.
        Parameters:
        value - if true then the tab is made visible by default
      • updateProperties

        protected boolean updateProperties()
        Saves the current properties.
        Returns:
        true if successfully updated
      • getProperties

        public static Properties getProperties()
        Returns the properties that define the editor.
        Returns:
        the properties