org.opensha.sra.gui.portfolioeal
Class PortfolioFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.opensha.sra.gui.portfolioeal.PortfolioFileFilter

Deprecated.

@Deprecated
public class PortfolioFileFilter
extends FileFilter

The filter for portfolio file extensions.

Author:
Jeremy Leakakos

Constructor Summary
PortfolioFileFilter()
          Deprecated.  
 
Method Summary
 boolean accept(File f)
          Deprecated. This method is the accept method overwritten from FileFilter.
 String getDescription()
          Deprecated. This method is the filter description for the JFileChooser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortfolioFileFilter

public PortfolioFileFilter()
Deprecated. 
Method Detail

accept

public boolean accept(File f)
Deprecated. 
This method is the accept method overwritten from FileFilter. It is used to filter out all but the portfolio file extensions.

Specified by:
accept in class FileFilter
Parameters:
f - The file having its extension looked at.
Returns:
True if the file has the proper extension, and false if it has a wrong extension.

getDescription

public String getDescription()
Deprecated. 
This method is the filter description for the JFileChooser.

Specified by:
getDescription in class FileFilter
Returns:
The filter name used in the file chooser