Package com.io7m.jwheatsheaf.ui
Class JWFileChooserFilterOnlyDirectories
- java.lang.Object
-
- com.io7m.jwheatsheaf.ui.JWFileChooserFilterOnlyDirectories
-
- All Implemented Interfaces:
JWFileChooserFilterType
public final class JWFileChooserFilterOnlyDirectories extends java.lang.Object implements JWFileChooserFilterType
A filter that accepts only directories.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JWFileChooserFilterTypecreate(JWStrings strings)java.lang.Stringdescription()booleanisAllowed(java.nio.file.Path path)
-
-
-
Method Detail
-
create
public static JWFileChooserFilterType create(JWStrings strings)
-
description
public java.lang.String description()
- Specified by:
descriptionin interfaceJWFileChooserFilterType- Returns:
- The filter description
-
isAllowed
public boolean isAllowed(java.nio.file.Path path)
- Specified by:
isAllowedin interfaceJWFileChooserFilterType- Parameters:
path- The input file- Returns:
trueif the file should appear in listings
-
-