Class FileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
VASSAL.tools.filechooser.FileFilter
- All Implemented Interfaces:
FilenameFilter
- Direct Known Subclasses:
DirectoryFileFilter
,ExtensionFileFilter
The file filter abstract base class for {link VASSAL.tools.FileChooser}.
This class joins together the
FileFilter
class and the {link java.awt.FilenameFilter} interface so that a
uniform file chooser may be used with {link VASSAL.tools.FileChooser},
regardless of the actual (i.e., naive or Swing) file chooser displayed.- Author:
- uckelman
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
FileFilter
public FileFilter()
-
-
Method Details
-
accept
The accept test used by Swing file choosers.- Specified by:
accept
in classFileFilter
- Returns:
- Whether the given file is accepted by this filter.
-
accept
The accept test used by AWT file choosers.- Specified by:
accept
in interfaceFilenameFilter
- Returns:
- Whether the given file is accepted by this filter.
-
getDescription
- Specified by:
getDescription
in classFileFilter
- Returns:
- A description of this filter to be displayed in the file chooser.
-