Class PackageSelectorGUI.PackageDirFilter

  • Enclosing class:
    PackageSelectorGUI

    public static class PackageSelectorGUI.PackageDirFilter
    extends javax.swing.filechooser.FileFilter
    The PackageDirFilter class allows filtering directories.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File file)
      Determines whether a given File object is accepted by this filter.
      java.lang.String getDescription()  
      • Methods inherited from class java.lang.Object

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

      • PackageDirFilter

        public PackageDirFilter()
    • Method Detail

      • accept

        public boolean accept​(java.io.File file)
        Determines whether a given File object is accepted by this filter.
        Specified by:
        accept in class javax.swing.filechooser.FileFilter
        Parameters:
        file - The given File object.
        Returns:
        true, if the given File object is accepted, fase otherwise.
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in class javax.swing.filechooser.FileFilter
        Returns:
        The description of this filter.