MovieLibrary
Class SubsFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by MovieLibrary.SubsFileFilter

public class SubsFileFilter
extends javax.swing.filechooser.FileFilter

File filter for subtitles files (srt and sub)

Author:
Alex Della-Croce

Constructor Summary
SubsFileFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Takes a file and accepts .srt and .sub files
 java.lang.String getDescription()
          get the description of the file filter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubsFileFilter

public SubsFileFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Takes a file and accepts .srt and .sub files

Specified by:
accept in class javax.swing.filechooser.FileFilter
Returns:
true if file accepted (sub or srt) otherwise false

getDescription

public java.lang.String getDescription()
get the description of the file filter

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
string description of file filter