org.jscience.chemistry.vapor.util
Class BasicFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.jscience.chemistry.vapor.util.BasicFileFilter

public class BasicFileFilter
extends javax.swing.filechooser.FileFilter

A very minimal implementation of FileFilter for JFileChooser.


Constructor Summary
BasicFileFilter(java.lang.String extension, java.lang.String description)
          Creates a new BasicFileFilter object.
 
Method Summary
 boolean accept(java.io.File f)
          DOCUMENT ME!
 java.lang.String getDescription()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicFileFilter

public BasicFileFilter(java.lang.String extension,
                       java.lang.String description)
Creates a new BasicFileFilter object.

Parameters:
extension - DOCUMENT ME!
description - DOCUMENT ME!
Method Detail

accept

public boolean accept(java.io.File f)
DOCUMENT ME!

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - DOCUMENT ME!
Returns:
DOCUMENT ME!

getDescription

public java.lang.String getDescription()
DOCUMENT ME!

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
DOCUMENT ME!