gov.nih.nlm.mms
Class SaveConfigAction.PropertiesFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by gov.nih.nlm.mms.SaveConfigAction.PropertiesFileFilter
Enclosing class:
SaveConfigAction

protected static class SaveConfigAction.PropertiesFileFilter
extends FileFilter

FileFilter class for JFileChooser to limit files to .properties file extension.


Constructor Summary
protected SaveConfigAction.PropertiesFileFilter()
           
 
Method Summary
 boolean accept(File file)
          Indicates whether a file has an extension of .properties, or is a directory to allow navigation.
 String getDescription()
          Returns the .properties file filter description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveConfigAction.PropertiesFileFilter

protected SaveConfigAction.PropertiesFileFilter()
Method Detail

accept

public boolean accept(File file)
Indicates whether a file has an extension of .properties, or is a directory to allow navigation.

Specified by:
accept in class FileFilter
Parameters:
file - file or directory
Returns:
true if the file is a .properties file or a directory.

getDescription

public String getDescription()
Returns the .properties file filter description.

Specified by:
getDescription in class FileFilter
Returns:
the filter description.


Copyright ©2005