Package com.io7m.jwheatsheaf.api
Interface JWFileChooserFilterType
- All Known Implementing Classes:
JWFileChooserFilterAllFiles,JWFileChooserFilterOnlyDirectories
public interface JWFileChooserFilterType
The type of file filters.
A filter consists of a humanly-readable description which is displayed
in the file chooser UI, and a function
isAllowed(Path) that
returns true if the file should appear in listings.-
Method Summary
Modifier and Type Method Description java.lang.Stringdescription()booleanisAllowed(java.nio.file.Path path)
-
Method Details
-
description
java.lang.String description()- Returns:
- The filter description
-
isAllowed
boolean isAllowed(java.nio.file.Path path)- Parameters:
path- The input file- Returns:
trueif the file should appear in listings
-