java.lang.Object
javax.swing.filechooser.FileFilter
org.modama.gui.tools.MyFileFilter
- public class MyFileFilter
- extends javax.swing.filechooser.FileFilter
filefilter for different formats, has a name/description and an array of possible extensions
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
protected java.lang.String description
suffixes
protected java.lang.String[] suffixes
MyFileFilter
public MyFileFilter(java.lang.String description,
java.lang.String[] suffixes)
accept
public boolean accept(java.io.File f)
- Description copied from class:
javax.swing.filechooser.FileFilter
- Returns
true if the specified file matches the filter, and
false otherwise.
getDescription
public java.lang.String getDescription()
- Description copied from class:
javax.swing.filechooser.FileFilter
- Returns a description of the files that will be selected by the filter
(for example, "Java source files"). This description will usually be
displayed on the javax.swing.JFileChooser component, often in a combo box that
is used to select the appropriate filter (in cases where more than one
filter is available).
getSuffixes
public java.lang.String[] getSuffixes()