Package com.io7m.jwheatsheaf.ui.internal
Class JWFileChooserFilterOnlyDirectories
java.lang.Object
com.io7m.jwheatsheaf.ui.internal.JWFileChooserFilterOnlyDirectories
- All Implemented Interfaces:
JWFileChooserFilterType
public final class JWFileChooserFilterOnlyDirectories
extends Object
implements JWFileChooserFilterType
A filter that accepts only directories.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JWFileChooserFilterType
Create a file chooser filter that only accepts directories.boolean
-
Method Details
-
create
Create a file chooser filter that only accepts directories.- Parameters:
strings
- The string resource provider- Returns:
- A file filter
-
description
- Specified by:
description
in interfaceJWFileChooserFilterType
- Returns:
- The filter description
-
isAllowed
- Specified by:
isAllowed
in interfaceJWFileChooserFilterType
- Parameters:
path
- The input file- Returns:
true
if the file should appear in listings
-