Class s2iNewProject.dirFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--s2iNewProject.dirFilter

class s2iNewProject.dirFilter
extends javax.swing.filechooser.FileFilter

A FileFilter class to make a JFileChooser choose only directories.


Constructor Summary
(package private) s2iNewProject.dirFilter()
           
 
Method Summary
 boolean accept(java.io.File f)
          Determine if a file entry should be shown in a JFileChooser.
 java.lang.String getDescription()
          Get the description String for SpiTran directories in a JFileChooser
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

s2iNewProject.dirFilter

s2iNewProject.dirFilter()
Method Detail

getDescription

public java.lang.String getDescription()
Get the description String for SpiTran directories in a JFileChooser
Overrides:
getDescription in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File f)
Determine if a file entry should be shown in a JFileChooser. Only directories are shown.
Parameters:
f - The file to accept or reject
Returns:
true if the file should be shown
Overrides:
accept in class javax.swing.filechooser.FileFilter