Package org.ka2ddo.yaac.gui.util
Class DirectoryFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.ka2ddo.yaac.gui.util.DirectoryFilter
This class provides a JFileChooser's FileFilter that only selects directories,
not regular files.
- Author:
- Andrew Pavlin, KA2DDO
-
Constructor Summary
ConstructorDescriptionDirectoryFilter
(String descr) Create a DirectoryFilter with the specified description. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether the given file is accepted by this filter.The description of this filter.
-
Constructor Details
-
DirectoryFilter
Create a DirectoryFilter with the specified description.- Parameters:
descr
- localized description String
-
-
Method Details
-
accept
Whether the given file is accepted by this filter.- Specified by:
accept
in classFileFilter
-
getDescription
The description of this filter. For example: "JPG and GIF Images"- Specified by:
getDescription
in classFileFilter
-