|
||||||||||
| 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
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)
accept tests if a file fits the filter defined in the constructor. |
java.lang.String |
getDescription()
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)
file - file to check
public java.lang.String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||