Package VASSAL.tools.filechooser
Class DirectoryFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
VASSAL.tools.filechooser.FileFilter
VASSAL.tools.filechooser.DirectoryFileFilter
- All Implemented Interfaces:
FilenameFilter
public class DirectoryFileFilter extends FileFilter
A FileFilter which accepts directories only.
- Author:
- Joel Uckelman
-
Constructor Summary
Constructors Constructor Description DirectoryFileFilter() -
Method Summary
Modifier and Type Method Description booleanaccept(File f)The accept test used by Swing file choosers.StringgetDescription()Methods inherited from class VASSAL.tools.filechooser.FileFilter
accept
-
Constructor Details
-
DirectoryFileFilter
public DirectoryFileFilter()
-
-
Method Details
-
accept
Description copied from class:FileFilterThe accept test used by Swing file choosers.- Specified by:
acceptin classFileFilter- Returns:
- Whether the given file is accepted by this filter.
-
getDescription
- Specified by:
getDescriptionin classFileFilter- Returns:
- A description of this filter to be displayed in the file chooser.
-