com.evanmclean.evlib.swing.filechooser
Class FolderFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by com.evanmclean.evlib.swing.filechooser.FolderFilter

public class FolderFilter
extends FileFilter

File filter for the JFileChooser that only accepts folders.

Author:
Evan McLean McLean Computer Services (see the overview for copyright and licensing.)

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

Constructor Detail

FolderFilter

public FolderFilter()

FolderFilter

public FolderFilter(String description)
Method Detail

accept

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

getDescription

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