Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 916 2006-06-08 18:01:08Z ian_lewis $
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)` Whether the given file is accepted by 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`

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)

  Whether the given file is accepted by this filter.

### getDescription

    public String getDescription()

  The description of this filter.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD