Package net.sf.colossus.server
Class XMLSnapshotFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- net.sf.colossus.server.XMLSnapshotFilter
-
- All Implemented Interfaces:
java.io.FilenameFilter
public final class XMLSnapshotFilter extends javax.swing.filechooser.FileFilter implements java.io.FilenameFilterClass XMLSnapshotFilter implements a FilenameFilter for savegames.- Author:
- David Ripton
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringdescription
-
Constructor Summary
Constructors Constructor Description XMLSnapshotFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File f)booleanaccept(java.io.File dir, java.lang.String name)java.lang.StringgetDescription()
-
-
-
Field Detail
-
description
public static final java.lang.String description
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
public boolean accept(java.io.File dir, java.lang.String name)- Specified by:
acceptin interfacejava.io.FilenameFilter
-
accept
public boolean accept(java.io.File f)
- Specified by:
acceptin classjavax.swing.filechooser.FileFilter
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classjavax.swing.filechooser.FileFilter
-
-