org.sigpath.navigator.components
Class NavigatorFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
org.sigpath.navigator.components.NavigatorFileFilter
public class NavigatorFileFilter
- extends FileFilter
This class creates file filtering by extension
for the save file dialog.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NavigatorFileFilter
public NavigatorFileFilter()
accept
public boolean accept(File f)
- Displays files that have the extension "xml".
- Specified by:
accept in class FileFilter
- Parameters:
f - File
- Returns:
- boolean
getDescription
public String getDescription()
- Specified by:
getDescription in class FileFilter
checkExtension
public String checkExtension(String filename)
- This method checks if the filename has the proper extension.
If an extension is missing, this method will add an extension
to the filename.
- Parameters:
filename -
Copyright © 2002-2005 Institute for Computational Biomedicine, All Rights Reserved.