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 TypeMethodDescriptionbooleanAccept the file.Get the description for the files this filter accepts.
-
Constructor Details
-
ExtFilter
Create anExtFilterwith the given params.- Parameters:
file_extension- extension for files.desc- description of these files.
-
-
Method Details
-
accept
Accept the file.- Specified by:
acceptin 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:
getDescriptionin classFileFilter- Returns:
- description.
-