|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.filechooser.FileFilter
edu.neu.ccs.gui.FileView.ExtensionFileFilter
A file filter that accepts all files with a specific extension.
This filter is case insensitive.
This inner class has been generalized by the class
FileExtensionFilter in the package
edu.neu.ccs.util. To minimize confusion
and to support backward compatibility, this class has
been retained.
| Field Summary | |
private String |
ext
The extension accepted by this filter. |
private String |
extInLowerCase
The extension in lower case accepted by this filter. |
private int |
extLength
The extension length. |
| Constructor Summary | |
FileView.ExtensionFileFilter(String extension)
Constructor for a filter accepting all files with the given extension. |
|
| Method Summary | |
boolean |
accept(File f)
Returns whether or not the given file is acceptable to this filter. |
String |
getDescription()
The description of this filter. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private String ext
private String extInLowerCase
private int extLength
| Constructor Detail |
public FileView.ExtensionFileFilter(String extension)
Constructor for a filter accepting all files with the given extension.
Extension match is case insensitive.
If the given String is null
or of length 0, all files are acceptable to this filter.
extension - the desired extension| Method Detail |
public boolean accept(File f)
f - the file to be testedpublic String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||