Module tvbrowser

Class ProgramMarkingPriorityFilterComponent

  • All Implemented Interfaces:
    FilterComponent

    public class ProgramMarkingPriorityFilterComponent
    extends AbstractFilterComponent
    A filter component for tracking programs that have a selected mark priority.
    Since:
    2.5.1
    Author:
    René Mach
    • Constructor Detail

      • ProgramMarkingPriorityFilterComponent

        public ProgramMarkingPriorityFilterComponent()
        Creates an new instance of this filter component.
      • ProgramMarkingPriorityFilterComponent

        public ProgramMarkingPriorityFilterComponent​(java.lang.String name,
                                                     java.lang.String desc)
        Creates an instance of this filter component with given name and given description.
        Parameters:
        name - The name of this filter component.
        desc - The description for this filter component.
    • Method Detail

      • accept

        public boolean accept​(Program program)
        Description copied from interface: FilterComponent
        Checks a program if it is acceptable by the FilterComponent.
        Parameters:
        program - The program to check.
        Returns:
        true if the program is acceptable by the FilterComponent, false otherwise.
      • getSettingsPanel

        public javax.swing.JPanel getSettingsPanel()
        Description copied from interface: FilterComponent
        Gets the settings panel for a FilterComponent.
        Returns:
        The settings panel the FilterComponent.
      • getVersion

        public int getVersion()
        Description copied from interface: FilterComponent
        Gets the version number of a FilterComponent.
        Returns:
        The version number of a FilterComponent.
      • read

        public void read​(java.io.ObjectInputStream in,
                         int version)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
        Description copied from interface: FilterComponent
        Loads the settings of a FilterComponent from an ObjectInputStream.
        Parameters:
        in - The stream to read from.
        version - The version of the data.
        Throws:
        java.io.IOException - Thrown if an IO operation went wrong.
        java.lang.ClassNotFoundException - Thrown if a class could not be found.
      • saveSettings

        public void saveSettings()
        Description copied from interface: FilterComponent
        Is called when the settings should be saved (i.e. the users pressed the OK button in the settings dialog)
      • write

        public void write​(java.io.ObjectOutputStream out)
                   throws java.io.IOException
        Description copied from interface: FilterComponent
        Saves the settings of a FilterComponent to an ObjectOutputStream.
        Parameters:
        out - The stream to write to.
        Throws:
        java.io.IOException - Thrown if an IO operation went wrong.
      • toString

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