public class FileFilterSelector extends FileDepthSelector
FileSelector
that selects all children of the given fileObject.
This is to mimic the FileFilter
interface.
Modifier and Type | Field and Description |
---|---|
private FileFilter |
fileFilter
The FileFilter.
|
Constructor and Description |
---|
FileFilterSelector() |
FileFilterSelector(FileFilter fileFilter) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FileSelectInfo fileInfo)
Determines whether the file should be selected.
|
boolean |
includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.
|
traverseDescendents
private final FileFilter fileFilter
public FileFilterSelector()
public FileFilterSelector(FileFilter fileFilter)
public boolean includeFile(FileSelectInfo fileInfo)
includeFile
in interface FileSelector
includeFile
in class FileDepthSelector
fileInfo
- The file selection information.public boolean accept(FileSelectInfo fileInfo)
fileInfo
- The file selection information.