Class DimapFileFilter


public class DimapFileFilter extends SnapFileFilter
  • Constructor Details

    • DimapFileFilter

      public DimapFileFilter()
  • Method Details

    • accept

      public boolean accept(File file)
      Description copied from class: SnapFileFilter
      Tests whether or not the given file is accepted by this filter. The default implementation returns true if the given file is a directory or the path string ends with one of the registered extensions. if no extension are defined, the method always returns true
      Overrides:
      accept in class SnapFileFilter
      Parameters:
      file - the file to be or not be accepted.
      Returns:
      true if given file is accepted by this filter
    • isCompoundDocument

      public boolean isCompoundDocument(File dir)
      Description copied from class: SnapFileFilter
      Checks if the given directory represents a compound document. If so, we don't want the user to descend into it when using the JFileChooser. The default implementation returns false. Clients may override.
      Overrides:
      isCompoundDocument in class SnapFileFilter
      Parameters:
      dir - The directory to check.
      Returns:
      true If the given directory represents a compound document.