net.sf.ext.util
Class FileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.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 extension
 
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 extension

Parameters:
extension - criterium to filter
Method Detail

accept

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

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - file to check on

getDescription

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

Specified by:
getDescription in class javax.swing.filechooser.FileFilter