Interface TabPreferenceSetting

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void addSubTab​(SubPreferenceSetting sub, java.lang.String title, java.awt.Component component)
      Adds a new sub preference settings tab with the given title and component.
      void addSubTab​(SubPreferenceSetting sub, java.lang.String title, java.awt.Component component, java.lang.String tip)
      Adds a new sub preference settings tab with the given title, component and tooltip.
      java.lang.String getDescription()
      Called during preferences tab initialization to display a description in one sentence for this tab.
      java.lang.String getHelpContext()
      Returns the help context for this preferences settings tab.
      default javax.swing.ImageIcon getIcon​(ImageProvider.ImageSizes size)
      Returns the icon for this preference setting
      java.lang.String getIconName()
      Called during preferences dialog initialization to display the preferences tab with the returned icon.
      java.lang.Class<? extends SubPreferenceSetting> getSelectedSubTab()
      Returns the currently selected sub preference setting
      java.awt.Component getSubTab​(SubPreferenceSetting sub)
      Returns the tab component related to the specified sub preference settings
      java.lang.String getTitle()
      Called during preferences tab initialization to display its title.
      java.lang.String getTooltip()
      Called during preferences dialog initialization to display the preferences tab with the returned tooltip.
      void registerSubTab​(SubPreferenceSetting sub, java.awt.Component component)
      Registers a sub preference settings to an existing tab component.
      boolean selectSubTab​(SubPreferenceSetting subPref)
      Selects the specified sub preference settings, if applicable.
    • Method Detail

      • getIconName

        java.lang.String getIconName()
        Called during preferences dialog initialization to display the preferences tab with the returned icon.
        Returns:
        The icon name in the preferences folder.
      • getIcon

        default javax.swing.ImageIcon getIcon​(ImageProvider.ImageSizes size)
        Returns the icon for this preference setting
        Parameters:
        size - the icon size
        Returns:
        the icon or null
      • getTitle

        java.lang.String getTitle()
        Called during preferences tab initialization to display its title.
        Returns:
        The title of this preferences tab.
      • getTooltip

        java.lang.String getTooltip()
        Called during preferences dialog initialization to display the preferences tab with the returned tooltip.
        Returns:
        The tooltip of this preferences tab.
      • getDescription

        java.lang.String getDescription()
        Called during preferences tab initialization to display a description in one sentence for this tab. Will be displayed in italic under the title.
        Returns:
        The description of this preferences tab.
      • addSubTab

        void addSubTab​(SubPreferenceSetting sub,
                       java.lang.String title,
                       java.awt.Component component)
        Adds a new sub preference settings tab with the given title and component.
        Parameters:
        sub - The new sub preference settings.
        title - The tab title.
        component - The tab component.
        Since:
        5631
      • addSubTab

        void addSubTab​(SubPreferenceSetting sub,
                       java.lang.String title,
                       java.awt.Component component,
                       java.lang.String tip)
        Adds a new sub preference settings tab with the given title, component and tooltip.
        Parameters:
        sub - The new sub preference settings.
        title - The tab title.
        component - The tab component.
        tip - The tab tooltip.
        Since:
        5631
      • registerSubTab

        void registerSubTab​(SubPreferenceSetting sub,
                            java.awt.Component component)
        Registers a sub preference settings to an existing tab component.
        Parameters:
        sub - The new sub preference settings.
        component - The component for which a tab already exists.
        Since:
        5631
      • getSubTab

        java.awt.Component getSubTab​(SubPreferenceSetting sub)
        Returns the tab component related to the specified sub preference settings
        Parameters:
        sub - The requested sub preference settings.
        Returns:
        The component related to the specified sub preference settings, or null.
        Since:
        5631
      • getSelectedSubTab

        java.lang.Class<? extends SubPreferenceSettinggetSelectedSubTab()
        Returns the currently selected sub preference setting
        Returns:
        the currently selected sub preference setting
      • selectSubTab

        boolean selectSubTab​(SubPreferenceSetting subPref)
        Selects the specified sub preference settings, if applicable. Not all Tab preference settings need to implement this.
        Parameters:
        subPref - The sub preference settings to be selected.
        Returns:
        true if the specified preference settings have been selected, false otherwise.
        Since:
        5631
      • getHelpContext

        java.lang.String getHelpContext()
        Returns the help context for this preferences settings tab.
        Returns:
        the help context for this preferences settings tab
        Since:
        13431