tvbrowser.core.filters.filtercomponents

## Class ProgramRunningFilterComponent

- java.lang.Object
- - tvbrowser.core.filters.filtercomponents.AbstractFilterComponent
  - - tvbrowser.core.filters.filtercomponents.ProgramRunningFilterComponent

- All Implemented Interfaces:
    FilterComponent

      public class ProgramRunningFilterComponent
      extends AbstractFilterComponent

  Filtered if a show is currently running
  Author:
    bodo

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface tvbrowser.core.filters.FilterComponent

      `FilterComponent.NameComparator, FilterComponent.TypeComparator`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ProgramRunningFilterComponent()` Creates an unnamed filter
    `ProgramRunningFilterComponent(java.lang.String name, java.lang.String description)` Creates the filter

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `accept(Program program)` Checks a program if it is acceptable by the FilterComponent.
    `javax.swing.JPanel` | `getSettingsPanel()` Gets the settings panel for a FilterComponent.
    `int` | `getVersion()` Gets the version number of a FilterComponent.
    `void` | `read(java.io.ObjectInputStream in, int version)` read the settings
    `void` | `saveSettings()` save the settings
    `java.lang.String` | `toString()`
    `void` | `write(java.io.ObjectOutputStream out)` write the settings

    - ### Methods inherited from class tvbrowser.core.filters.filtercomponents.AbstractFilterComponent

      `getDescription, getName, getTypeDescription, setDescription, setName`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ProgramRunningFilterComponent

          public ProgramRunningFilterComponent()

      Creates an unnamed filter

    - #### ProgramRunningFilterComponent

          public ProgramRunningFilterComponent(java.lang.String name,
                                       java.lang.String description)

      Creates the filter
      Parameters:
        `name` - name of the filter
        `description` - description of the filter

  - ### Method Detail

    - #### getVersion

          public int getVersion()

      Description copied from interface: `FilterComponent`
      Gets the version number of a FilterComponent.
      Returns:
        version of the filter
      See Also:
        `FilterComponent.getVersion()`

    - #### 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 now running
      See Also:
        `FilterComponent.accept(devplugin.Program)`

    - #### read

          public void read(java.io.ObjectInputStream in,
                  int version)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException

      read the settings
      Parameters:
        `in` - The stream to read from.
        `version` - The version of the data.
      Throws:
        `java.io.IOException`
        `java.lang.ClassNotFoundException`
      See Also:
        `FilterComponent.read(java.io.ObjectInputStream, int)`

    - #### write

          public void write(java.io.ObjectOutputStream out)
                     throws java.io.IOException

      write the settings
      Parameters:
        `out` - The stream to write to.
      Throws:
        `java.io.IOException`
      See Also:
        `FilterComponent.write(java.io.ObjectOutputStream)`

    - #### getSettingsPanel

          public javax.swing.JPanel getSettingsPanel()

      Description copied from interface: `FilterComponent`
      Gets the settings panel for a FilterComponent.
      Returns:
        settings panel for this filter component
      See Also:
        `FilterComponent.getSettingsPanel()`

    - #### saveSettings

          public void saveSettings()

      save the settings
      See Also:
        `FilterComponent.saveSettings()`

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`
      Returns:
        name of the filter

TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)