gov.nih.nlm.mms
Class SaveConfigAction.PropertiesFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
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.
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 |
SaveConfigAction.PropertiesFileFilter
protected SaveConfigAction.PropertiesFileFilter()
accept
public boolean accept(File file)
- Indicates whether a file has an extension of .properties, or is a
directory to allow navigation.
- 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.
- Returns:
- the filter description.
Copyright ©2005