brain.gui.FileFilters
Class FileChooserParameterFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by brain.gui.FileFilters.FileChooserParameterFilter

public class FileChooserParameterFilter
extends javax.swing.filechooser.FileFilter

This class helps to filter the parameter file types in the file chooser dialog used to load and save parameters.


Constructor Summary
FileChooserParameterFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Whether the given file is accepted by this filter.
 java.lang.String getDescription()
          The description of this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileChooserParameterFilter

public FileChooserParameterFilter()
Method Detail

accept

public boolean accept(java.io.File file)
Whether the given file is accepted by this filter.

Specified by:
accept in class javax.swing.filechooser.FileFilter

getDescription

public java.lang.String getDescription()
The description of this filter. For example: "JPG and GIF Images"

Specified by:
getDescription in class javax.swing.filechooser.FileFilter