Class BasicGraphFrame.FolderFileFilter

  • Enclosing class:
    BasicGraphFrame

    public static class BasicGraphFrame.FolderFileFilter
    extends javax.swing.filechooser.FileFilter
    Accept only folders in a file browser.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FolderFileFilter

        public FolderFileFilter()
    • Method Detail

      • accept

        public boolean accept​(java.io.File fileOrDirectory)
        Accept only folders.
        Specified by:
        accept in class javax.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 class javax.swing.filechooser.FileFilter