Class BasicGraphFrame.FolderFileFilter

  • Enclosing class:

    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​( 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​( fileOrDirectory)
        Accept only folders.
        Specified by:
        accept in class javax.swing.filechooser.FileFilter
        fileOrDirectory - The file or directory to be checked.
        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