Module tvbrowser

Class ProgramLengthFilterComponent

  • All Implemented Interfaces:
    FilterComponent

    public class ProgramLengthFilterComponent
    extends AbstractFilterComponent
    This filter accepts programs where the duration is in a given time range.
    Author:
    bodo
    • Constructor Detail

      • ProgramLengthFilterComponent

        public ProgramLengthFilterComponent()
        Erzeugt einen leeren Filter
      • ProgramLengthFilterComponent

        public ProgramLengthFilterComponent​(java.lang.String name,
                                            java.lang.String description)
        Erzeugt einen Filter
        Parameters:
        name - Name
        description - Beschreibung
    • Method Detail

      • getVersion

        public int getVersion()
        returns the version of the filter component
        Returns:
        The version number of a FilterComponent.
        See Also:
        FilterComponent.getVersion()
      • accept

        public boolean accept​(Program program)
        accepts only programs with a certain program length
        Parameters:
        program - The program to check.
        Returns:
        true if the program is acceptable by the FilterComponent, false otherwise.
        See Also:
        FilterComponent.accept(devplugin.Program)
      • read

        public void read​(java.io.ObjectInputStream in,
                         int version)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
        Liest die Einstellungen
        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.
        See Also:
        FilterComponent.read(java.io.ObjectInputStream, int)
      • write

        public void write​(java.io.ObjectOutputStream out)
                   throws java.io.IOException
        Schreibt die Einstellungen
        Parameters:
        out - The stream to write to.
        Throws:
        java.io.IOException - Thrown if an IO operation went wrong.
        See Also:
        FilterComponent.write(java.io.ObjectOutputStream)
      • getSettingsPanel

        public javax.swing.JPanel getSettingsPanel()
        Erzeugt das Settings-Panel
        Returns:
        The settings panel the FilterComponent.
        See Also:
        FilterComponent.getSettingsPanel()
      • toString

        public java.lang.String toString()
        return the filter name
        Overrides:
        toString in class java.lang.Object