DODS 6.5 API

org.enhydra.dods.wizard
Class DirectoryFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.enhydra.dods.wizard.DirectoryFilter

public class DirectoryFilter
extends javax.swing.filechooser.FileFilter

DirectoryFilter restricts file sets to only those files that are directories. Use this with JFileChooser to create a directory chooser.

Version:
1.0
Author:
Nenad Vico

Constructor Summary
DirectoryFilter()
          Create a DirectoryFilter for use with the FileChooser dialog.
 
Method Summary
 boolean accept(java.io.File f)
          Check to see if the passed file is a directory.
 java.lang.String getDescription()
          Get a description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryFilter

public DirectoryFilter()
Create a DirectoryFilter for use with the FileChooser dialog.

Method Detail

accept

public boolean accept(java.io.File f)
Check to see if the passed file is a directory.

Parameters:
f - File to check.
Returns:
True if the file is a directory.

getDescription

public java.lang.String getDescription()
Get a description of this filter.

Returns:
The description of this filter.

DODS 6.5 API