|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
com.huguesjohnson.fileFilter.DirectoryFileFilter
public class DirectoryFileFilter
DirectoryFileFilter - Filter to only accept directories in a JFileChooser JFileChooser has an option to only accept directories but it does not populate the description combo box
Constructor Summary | |
---|---|
DirectoryFileFilter()
Creates a new instance of DirectoryFileFilter. |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Tests if a file fits the filter defined in the constructor. |
java.lang.String |
getDescription()
Returns the description of file accepted by the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectoryFileFilter()
Method Detail |
---|
public boolean accept(java.io.File file)
accept
in class javax.swing.filechooser.FileFilter
file
- The file to check.
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |