# com.bea.ide.filesystem
FileFilterBridge Class

public class FileFilterBridge
extends `FileFilter`
implements `FileFilter`, `IFileFilter`

Bridges javax.swing.filechooser.FileFilter, java.io.FileFilter, and com.bea.ide.filesystem.IFileFilter. Useful when one has a filter of one type and needs to use it in another context, like using an IFileFilter in a Swing FileChooserDialog.

Hierarchy
  `Object`
  `FileFilter`
  `FileFilterBridge`

All Implemented Interfaces
  `FileFilter`, `IFileFilter`

## Constructor Summary

FileFilterBridge(`IFileFilter` filter, `String` description) The description parameter is used by Swing's FileChooser.
FileFilterBridge(`IFileFilter` filter)
FileFilterBridge(`FileFilter` filter, `String` description) The description parameter is used by Swing's FileChooser.
FileFilterBridge(`FileFilter` filter)
FileFilterBridge(`FileFilter` filter)

## Method Summary

`public boolean` | `accept`(`IFile` file) This method should return true if the passed-in file is accepted by the filter and false if the file should be filtered out.
`public boolean` | `accept`(`File` file)
`public `String`` | `getDescription`()

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `java.io.`FileFilter``
`accept`

Methods from interface `com.bea.ide.filesystem.`IFileFilter``
``accept``

## Constructor Detail

### FileFilterBridge

    public FileFilterBridge(IFileFilter filter,
                            String description)

  The description parameter is used by Swing's FileChooser.

### FileFilterBridge

    public FileFilterBridge(IFileFilter filter)

### FileFilterBridge

    public FileFilterBridge(FileFilter filter,
                            String description)

  The description parameter is used by Swing's FileChooser.

### FileFilterBridge

    public FileFilterBridge(FileFilter filter)

### FileFilterBridge

    public FileFilterBridge(FileFilter filter)

## Method Detail

### accept(IFile) Method

    public boolean accept(IFile file)

Description copied from `IFileFilter.accept(IFile)`
This method should return true if the passed-in file is accepted by the filter and false if the file should be filtered out.

### accept(File) Method

    public boolean accept(File file)

Overrides
  `FileFilter.accept(File)`

### getDescription() Method

    public String getDescription()

Overrides
  `FileFilter.getDescription()`