fdda.dialog.swing.utils
Class SimpleFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--fdda.dialog.swing.utils.SimpleFileFilter

public class SimpleFileFilter
extends FileFilter

A file filter for JFileChooser. Allows files with a specified ending and directories.

Author:
Jörg Rüdenauer

Constructor Summary
SimpleFileFilter()
          Constructor
SimpleFileFilter(String acceptExtension)
          Constructor with allowed extension.
 
Method Summary
 boolean accept(File inFile)
           
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFileFilter

public SimpleFileFilter()
Constructor


SimpleFileFilter

public SimpleFileFilter(String acceptExtension)
Constructor with allowed extension.

Parameters:
acceptExtension - the extension (without the '.' - e.g. "xml")
Method Detail

accept

public boolean accept(File inFile)
Specified by:
accept in class FileFilter

getDescription

public String getDescription()
Specified by:
getDescription in class FileFilter


API documentation for FDDA version 0.9. Generated on 17/02/2004 14:12.