net.sf.colossus.server
Class XMLSnapshotFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.sf.colossus.server.XMLSnapshotFilter
All Implemented Interfaces:
java.io.FilenameFilter

public final class XMLSnapshotFilter
extends javax.swing.filechooser.FileFilter
implements java.io.FilenameFilter

Class XMLSnapshotFilter implements a FilenameFilter for savegames.

Author:
David Ripton

Field Summary
static java.lang.String description
           
 
Constructor Summary
XMLSnapshotFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
           
 boolean accept(java.io.File dir, java.lang.String name)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

public static final java.lang.String description
See Also:
Constant Field Values
Constructor Detail

XMLSnapshotFilter

public XMLSnapshotFilter()
Method Detail

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter

accept

public boolean accept(java.io.File f)
Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter