Class InvestigatorTabbedPane

    • Constructor Detail

      • InvestigatorTabbedPane

        public InvestigatorTabbedPane​(InvestigatorPanel owner)
        Initializes the tabbed pane.
        Parameters:
        owner - the owning investigator instance
    • Method Detail

      • getOwner

        public InvestigatorPanel getOwner()
        Returns the owner.
        Returns:
        the owner
      • disambiguateTitle

        public String disambiguateTitle​(String title)
        Disambiguates the title, appending " (X)" to it.
        Parameters:
        title - the base title
        Returns:
        the new title
      • addTab

        public void addTab​(AbstractInvestigatorTab tab,
                           boolean show)
        Adds the tab.
        Parameters:
        tab - the tab to add
        show - whether to make this tab visible
      • copySelectedTab

        public void copySelectedTab()
        Creates a copy of the current tab.
      • copyTabAt

        public void copyTabAt​(int index)
        Creates a copy of the specified tab.
        Parameters:
        index - the index of the tab to copy
      • renameTabAt

        public void renameTabAt​(int index)
        Prompts the user to enter a new name for the tab.
        Parameters:
        index - the index of the tab to rename
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface adams.core.CleanUpHandler