Version: 1.1.1

ca.ucalgary.seahawk.util
Class DescriptiveFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by ca.ucalgary.seahawk.util.DescriptiveFileFilter

public class DescriptiveFileFilter
extends FileFilter

A FileFilter used to provide meaningful extensions and descriptions when using a file dialog.


Constructor Summary
DescriptiveFileFilter(String extension, String desc)
           
 
Method Summary
 boolean accept(File f)
          Returns true if f is a file with the correct extension, false otherwise.
 String getDescription()
          Returns the file description
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptiveFileFilter

public DescriptiveFileFilter(String extension,
                             String desc)
Method Detail

accept

public boolean accept(File f)
Returns true if f is a file with the correct extension, false otherwise.

Specified by:
accept in class FileFilter

getDescription

public String getDescription()
Returns the file description

Specified by:
getDescription in class FileFilter

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010