Package ucar.unidata.util
Class FileManager.ExtFilter
java.lang.Object
javax.swing.filechooser.FileFilter
ucar.unidata.util.FileManager.ExtFilter
- Enclosing class:
FileManager
A
FileFilter
extension that allows specifiying
an extension and description.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Accept the file.Get the description for the files this filter accepts.
-
Constructor Details
-
ExtFilter
Create anExtFilter
with the given params.- Parameters:
file_extension
- extension for files.desc
- description of these files.
-
-
Method Details
-
accept
Accept the file.- Specified by:
accept
in classFileFilter
- Parameters:
file
- file to accept- Returns:
- true if it matches the extension for this file.
-
getDescription
Get the description for the files this filter accepts.- Specified by:
getDescription
in classFileFilter
- Returns:
- description.
-