HiRISE

HiRISE.HiCat.Utilities
Class Configuration_Filename_Filter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by HiRISE.HiCat.Utilities.Configuration_Filename_Filter

public class Configuration_Filename_Filter
extends FileFilter

A very simple FileFilter for selecting configuration files. Files are filtered by whether or not they have a .conf extension (case-insensitive).

Version:
1.4
Author:
Rodney Heyd UA/PIRL

Field Summary
static String ID
          Class identification name with source code version and date.
 
Constructor Summary
Configuration_Filename_Filter()
           
 
Method Summary
 boolean accept(File input_file)
          Tests if a specified file should be included in the file list.
 String getDescription()
          Returns a string description of the types of files being filtered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
Class identification name with source code version and date.

See Also:
Constant Field Values
Constructor Detail

Configuration_Filename_Filter

public Configuration_Filename_Filter()
Method Detail

accept

public boolean accept(File input_file)
Tests if a specified file should be included in the file list. The extension of the input_file checks of the file has a .conf extension. Returns true if the extension matches or if the input file is a directory, otherwise returns false.

Specified by:
accept in class FileFilter
Parameters:
input_file - a file to be tested
Returns:
true if the file was accepted, otherwise false

getDescription

public String getDescription()
Returns a string description of the types of files being filtered.

Specified by:
getDescription in class FileFilter
Returns:
a string containing a description of the file types being filtered.

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona