Class FileDepthSelector

  • All Implemented Interfaces:
    FileSelector
    Direct Known Subclasses:
    FileFilterSelector

    public class FileDepthSelector
    extends java.lang.Object
    implements FileSelector
    A FileSelector that selects all files in a particular depth range.
    Version:
    $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Wed, 29 Nov 2006) $
    Author:
    Adam Murdoch
    • Constructor Summary

      Constructors 
      Constructor Description
      FileDepthSelector​(int minDepth, int maxDepth)  
    • Constructor Detail

      • FileDepthSelector

        public FileDepthSelector​(int minDepth,
                                 int maxDepth)
    • Method Detail

      • includeFile

        public boolean includeFile​(FileSelectInfo fileInfo)
        Determines if a file or folder should be selected.
        Specified by:
        includeFile in interface FileSelector
        Parameters:
        fileInfo - the file or folder to select.
        Returns:
        true if the file should be selected.
      • traverseDescendents

        public boolean traverseDescendents​(FileSelectInfo fileInfo)
        Determines whether a folder should be traversed.
        Specified by:
        traverseDescendents in interface FileSelector
        Parameters:
        fileInfo - the file or folder to select.
        Returns:
        true if the folder should be traversed.