org.acm.seguin.io
Class AllFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.acm.seguin.io.AllFileFilter

public class AllFileFilter
extends javax.swing.filechooser.FileFilter

Accepts all files

Author:
Chris Seguin

Constructor Summary
AllFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Should this file be accepted
 java.lang.String getDescription()
          Return the description of the files accepted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllFileFilter

public AllFileFilter()
Method Detail

getDescription

public java.lang.String getDescription()
Return the description of the files accepted

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
the description to be displayed in the file box

accept

public boolean accept(java.io.File file)
Should this file be accepted

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
file - the file under consideration
Returns:
true - all files are accepted