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 Details

    • create

      public static JWFileChooserFilterType create(JWStrings strings)
      Create a file chooser filter that only accepts directories.
      Parameters:
      strings - The string resource provider
      Returns:
      A file filter
    • description

      public String description()
      Specified by:
      description in interface JWFileChooserFilterType
      Returns:
      The filter description
    • isAllowed

      public boolean isAllowed(Path path)
      Specified by:
      isAllowed in interface JWFileChooserFilterType
      Parameters:
      path - The input file
      Returns:
      true if the file should appear in listings