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.String
description()
boolean
isAllowed(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:
true
if the file should appear in listings
-