ca.ucalgary.seahawk.util
Class DescriptiveFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
ca.ucalgary.seahawk.util.DescriptiveFileFilter
public class DescriptiveFileFilter
- extends FileFilter
A FileFilter used to provide meaningful extensions and descriptions when using a file dialog.
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 |
DescriptiveFileFilter
public DescriptiveFileFilter(String extension,
String desc)
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
Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010