net.sf.ext.util
Class FileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bynet.sf.ext.util.FileFilter

public class FileFilter
extends javax.swing.filechooser.FileFilter

A file filter on file extensions

Since:
1.4
Version:
1.0
Author:
Robert Jan van der Waals

Constructor Summary
FileFilter(java.lang.String extension)
          Create a file filter for the give extensuib
 
Method Summary
 boolean accept(java.io.File file)
          Check the file with the filter
 java.lang.String getDescription()
          Get the description of this filter for displaying purposes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileFilter

public FileFilter(java.lang.String extension)
Create a file filter for the give extensuib

Parameters:
extension - criterium to filter
Method Detail

accept

public boolean accept(java.io.File file)
Check the file with the filter

Parameters:
file - file to check on

getDescription

public java.lang.String getDescription()
Get the description of this filter for displaying purposes