SigPath

org.sigpath.navigator.components
Class NavigatorFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.sigpath.navigator.components.NavigatorFileFilter

public class NavigatorFileFilter
extends FileFilter

This class creates file filtering by extension for the save file dialog.


Constructor Summary
NavigatorFileFilter()
           
 
Method Summary
 boolean accept(File f)
          Displays files that have the extension "xml".
 String checkExtension(String filename)
          This method checks if the filename has the proper extension.
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigatorFileFilter

public NavigatorFileFilter()
Method Detail

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 -

SigPath

Copyright © 2002-2005 Institute for Computational Biomedicine, All Rights Reserved.