Class KeyFileFileFilter

java.lang.Object
javax.swing.filechooser.FileFilter
de.das.encrypter.tools.KeyFileFileFilter

public class KeyFileFileFilter extends FileFilter
This class is used together with the swing class JFileChooser and restricts the file selection offer to valid key bundles.
  • Constructor Details

    • KeyFileFileFilter

      public KeyFileFileFilter(String desc)
      Create a new instance of KeyFileFileFIlter.
      Parameters:
      desc - a language dependent description used by this file filter.
  • Method Details

    • accept

      public boolean accept(File f)
      Whether the given file is accepted by this filter.
      Specified by:
      accept in class FileFilter
      Parameters:
      f - the File to test
      Returns:
      true if the file is to be accepted
    • getDescription

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