Package ptolemy.vergil.basic
Class BasicGraphFrame.FolderFileFilter
- java.lang.Object
-
- javax.swing.filechooser.FileFilter
-
- ptolemy.vergil.basic.BasicGraphFrame.FolderFileFilter
-
- Enclosing class:
- BasicGraphFrame
public static class BasicGraphFrame.FolderFileFilter extends javax.swing.filechooser.FileFilter
Accept only folders in a file browser.
-
-
Constructor Summary
Constructors Constructor Description FolderFileFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.io.File fileOrDirectory)
Accept only folders.java.lang.String
getDescription()
The description of this filter.
-
-
-
Method Detail
-
accept
public boolean accept(java.io.File fileOrDirectory)
Accept only folders.- Specified by:
accept
in classjavax.swing.filechooser.FileFilter
- Parameters:
fileOrDirectory
- The file or directory to be checked.- Returns:
- true if the file is a directory.
-
getDescription
public java.lang.String getDescription()
The description of this filter.- Specified by:
getDescription
in classjavax.swing.filechooser.FileFilter
-
-