Class JWFileChooserFilterAllFiles

java.lang.Object
com.io7m.jwheatsheaf.ui.internal.JWFileChooserFilterAllFiles
All Implemented Interfaces:
JWFileChooserFilterType

public final class JWFileChooserFilterAllFiles
extends java.lang.Object
implements JWFileChooserFilterType
A filter that trivially accepts all files.
  • Method Summary

    Modifier and Type Method Description
    static JWFileChooserFilterType create​(JWStrings strings)
    Create a file chooser filter that accepts all files.
    java.lang.String description()  
    boolean isAllowed​(java.nio.file.Path path)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

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

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

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