org.simbrain.util
Class SFileChooser.FileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.simbrain.util.SFileChooser.FileFilter
Enclosing class:
SFileChooser

 class SFileChooser.FileFilter
extends FileFilter

File-filter.


Constructor Summary
SFileChooser.FileFilter()
           
 
Method Summary
 boolean accept(File file)
          Determines if the file has the correct extension type.
 String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFileChooser.FileFilter

SFileChooser.FileFilter()
Method Detail

accept

public boolean accept(File file)
Determines if the file has the correct extension type.

Specified by:
accept in class FileFilter
Parameters:
file - File to be checked
Returns:
whether the file has the correct extension type

getDescription

public String getDescription()
Specified by:
getDescription in class FileFilter
Returns:
description of the extension.