public static class FileManager.ExtFilter
extends javax.swing.filechooser.FileFilter
FileFilter extension that allows specifiying
an extension and description.| Constructor and Description |
|---|
ExtFilter(java.lang.String file_extension,
java.lang.String desc)
Create an
ExtFilter with the given params. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Accept the file.
|
java.lang.String |
getDescription()
Get the description for the files this filter accepts.
|
public ExtFilter(java.lang.String file_extension,
java.lang.String desc)
ExtFilter with the given params.file_extension - extension for files.desc - description of these files.public boolean accept(java.io.File file)
accept in class javax.swing.filechooser.FileFilterfile - file to acceptpublic java.lang.String getDescription()
getDescription in class javax.swing.filechooser.FileFilter