Module tvbrowser
Package devplugin

Class PluginCenterPanel

  • Direct Known Subclasses:
    PluginViewWrapper

    public abstract class PluginCenterPanel
    extends java.lang.Object
    A class that can be used to add panels to the TV-Browser main window.

    ATTENTION: Always extend this class to create own classes for your Plugin. Else way it won't work because you will not have an unique ID for your center panel.

    Since:
    3.2
    Author:
    René Mach
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Icon getIcon()  
      java.lang.String getId()
      Gets the ID (class name) of this PluginCenterPanel.
      abstract java.lang.String getName()
      Gets the name of this PluginCenterPanel that is used to show in the tab bar of the main window of TV-Browser.
      abstract javax.swing.JPanel getPanel()
      Gets the JPanel that should be shown in the tab bar of the TV-Browser main window.
      java.lang.String getSettingsId()  
      void setIcon​(javax.swing.Icon icon)  
      void setSettingsId​(java.lang.String settingsId)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PluginCenterPanel

        public PluginCenterPanel()
    • Method Detail

      • setSettingsId

        public final void setSettingsId​(java.lang.String settingsId)
        Parameters:
        settingsId - The settings ID of the plugin of this center panel.
        Since:
        3.4.5
      • getSettingsId

        public final java.lang.String getSettingsId()
        Returns:
        The settings ID of this center panels plugin or null if there are no settings.
        Since:
        3.4.5
      • setIcon

        public final void setIcon​(javax.swing.Icon icon)
        Parameters:
        icon - The icon to use for tab
        Since:
        3.4.5
      • getIcon

        public final javax.swing.Icon getIcon()
        Returns:
        The icon for this panel or null
        Since:
        3.4.5
      • getName

        public abstract java.lang.String getName()
        Gets the name of this PluginCenterPanel that is used to show in the tab bar of the main window of TV-Browser.
        Returns:
        The name of this PluginCenterPanel
      • getPanel

        public abstract javax.swing.JPanel getPanel()
        Gets the JPanel that should be shown in the tab bar of the TV-Browser main window.
        Returns:
        The JPanel that is used in the main window.
      • getId

        public final java.lang.String getId()
        Gets the ID (class name) of this PluginCenterPanel.

        Returns:
        The ID (class name) of this PluginCenterPanel.
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object