de.java_chess.javaChess.pgn
Class PGNFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--de.java_chess.javaChess.pgn.PGNFileFilter

public class PGNFileFilter
extends javax.swing.filechooser.FileFilter

A file filter for PGN files.


Constructor Summary
PGNFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Check if the given file is a PGN file.
 java.lang.String getDescription()
          Get a description of this file filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGNFileFilter

public PGNFileFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Check if the given file is a PGN file.
Overrides:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - The file to check.
Returns:
true, if the file is a PGN file, false otherwise.

getDescription

public java.lang.String getDescription()
Get a description of this file filter.
Overrides:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
A description of this file filter.