dirk_krause.jtools
Class DirectoryFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by dirk_krause.jtools.DirectoryFilter

public class DirectoryFilter
extends javax.swing.filechooser.FileFilter

Filter for the file chooser, allows to select directories.


Field Summary
static java.lang.String fd
          Filter description string
 
Constructor Summary
DirectoryFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Decide whether to accept or reject the file.
 java.lang.String getDescription()
          Get filter description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fd

public static final java.lang.String fd
Filter description string

See Also:
Constant Field Values
Constructor Detail

DirectoryFilter

public DirectoryFilter()
Method Detail

accept

public boolean accept(java.io.File f)
Decide whether to accept or reject the file.

Specified by:
accept in class javax.swing.filechooser.FileFilter
Parameters:
f - The file to inspect.
Returns:
Flag to indicate whether to accept or reject the file.

getDescription

public java.lang.String getDescription()
Get filter description.

Specified by:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
A short string describing this filter.