Class ExtensionFileFilter

All Implemented Interfaces:
FilenameFilter
Direct Known Subclasses:
ADC2ModuleFileFilter, AudioFileFilter, BMPFileFilter, ImageFileFilter, LogAndSaveFileFilter, LogFileFilter, MapBoardFileFilter, ModuleExtensionFileFilter, ModuleFileFilter, PNGFileFilter, SymbolSetFileFilter

public class ExtensionFileFilter extends FileFilter
A generic by-extension FileFilter.
Author:
Joel Uckelman
  • Constructor Details

    • ExtensionFileFilter

      public ExtensionFileFilter(String desc, String[] types)
      Parameters:
      desc - The description of this filter.
      types - A list of the extensions accepted by this filter.
  • Method Details

    • accept

      public boolean accept(File f)
      Description copied from class: FileFilter
      The accept test used by Swing file choosers.
      Specified by:
      accept in class FileFilter
      Returns:
      Whether the given file is accepted by this filter.
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class FileFilter
      Returns:
      The description of this filter.