net.sourceforge.jsxe
Class CustomFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
net.sourceforge.jsxe.CustomFileFilter
- public class CustomFileFilter
- extends FileFilter
A custom class that implements the FileFilter interface. It simplifies
creating a file filter.
- Version:
- $Id: CustomFileFilter.java,v 1.7 2005/04/15 20:00:50 ian_lewis Exp $
- Author:
- Ian Lewis (IanLewis@member.fsf.org)
Constructor Summary |
CustomFileFilter(Collection exts,
String desc)
Creates a CustomFileFilter given a Collection containing the file extensions
that the file filter accepts. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomFileFilter
public CustomFileFilter(Collection exts,
String desc)
- Creates a CustomFileFilter given a Collection containing the file extensions
that the file filter accepts. If the Collection does not contain strings
then the file filter will not accept any files.
- Parameters:
exts
- A Collection of String objects containing the file
extensions that this file filter accepts.desc
- The description for this file filter.
accept
public boolean accept(File f)
getDescription
public String getDescription()