net.sourceforge.jsxe
Class CustomFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bynet.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.
 
Method Summary
 boolean accept(File f)
           
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

accept

public boolean accept(File f)

getDescription

public String getDescription()