Module tvbrowser

Class PluginManagerImpl.RatingFieldRating

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Icon getIcon()
      Icon for this interface that is displayed by other plugins
      javax.swing.Icon getIconForProgram​(Program program)
      Get Icon for the rating.
      java.lang.String getName()
      Name for this interface that is displayed by other plugins
      int getRatingForProgram​(Program program)
      Returns a rating for this program.
      boolean hasDetailsDialog()
      Has this plugin a dialog that displays details about this rating?
      void showDetailsFor​(Program p)
      shows a detail dialog for a rating
      • Methods inherited from class java.lang.Object

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

      • RatingFieldRating

        public RatingFieldRating()
    • Method Detail

      • getIcon

        public javax.swing.Icon getIcon()
        Description copied from interface: ProgramRatingIf
        Icon for this interface that is displayed by other plugins
        Specified by:
        getIcon in interface ProgramRatingIf
        Returns:
        Icon
      • getIconForProgram

        public javax.swing.Icon getIconForProgram​(Program program)
        Description copied from interface: ProgramRatingIf
        Get Icon for the rating. This gives plugins the opportunity to show it's icon for the specific rating
        Specified by:
        getIconForProgram in interface ProgramRatingIf
        Parameters:
        program - program to get icon for
        Returns:
        icon for rating, null if no rating is available
      • getName

        public java.lang.String getName()
        Description copied from interface: ProgramRatingIf
        Name for this interface that is displayed by other plugins
        Specified by:
        getName in interface ProgramRatingIf
        Returns:
        Name
      • getRatingForProgram

        public int getRatingForProgram​(Program program)
        Description copied from interface: ProgramRatingIf
        Returns a rating for this program. The rating must be between 0 and 100, -1 if no rating is available
        Specified by:
        getRatingForProgram in interface ProgramRatingIf
        Parameters:
        program - program to get rating for
        Returns:
        rating for the program (between 0 and 100), -1 if no rating is available
      • hasDetailsDialog

        public boolean hasDetailsDialog()
        Description copied from interface: ProgramRatingIf
        Has this plugin a dialog that displays details about this rating?
        Specified by:
        hasDetailsDialog in interface ProgramRatingIf
        Returns:
        true if the plugin is able to show details of the rating