net.hblok.io
Class DirectoryFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.hblok.io.DirectoryFileFilter
All Implemented Interfaces:
FileFilter
Direct Known Subclasses:
DirectoryContentFileFilter

public class DirectoryFileFilter
extends FileFilter
implements FileFilter

A FileFilter which will accept directories only, as determined by the java.io.File.isDirectory() method.

Author:
Havard Rast Blok

Constructor Summary
DirectoryFileFilter()
           
 
Method Summary
 boolean accept(File f)
           
 String getDescription()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectoryFileFilter

public DirectoryFileFilter()
Method Detail

accept

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

getDescription

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

toString

public String toString()
Overrides:
toString in class Object