org.bioquery.gui
Class BQFileFilter

java.lang.Object
  |
  +--javax.swing.filechooser.FileFilter
        |
        +--org.bioquery.gui.BQFileFilter

public class BQFileFilter
extends javax.swing.filechooser.FileFilter


Constructor Summary
BQFileFilter(ProgramManager myProgramManager)
          Get the list of all acceptable file extensions from the ProgramManager.
 
Method Summary
 boolean accept(java.io.File theFile)
          Accept directories and files that have any extension registered with the ProgramManager (that is, extensions listed in the bq.xml properties file).
 java.lang.String getDescription()
          Return a simple String description of files that pass this filter "BioQuery files"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BQFileFilter

public BQFileFilter(ProgramManager myProgramManager)
Get the list of all acceptable file extensions from the ProgramManager. This is all file extensions listed for both Views and Querys in the properties files (bq.xml).
Method Detail

accept

public boolean accept(java.io.File theFile)
Accept directories and files that have any extension registered with the ProgramManager (that is, extensions listed in the bq.xml properties file).
Overrides:
accept in class javax.swing.filechooser.FileFilter
Parameters:
A - File to check whether it passes thru the filter
Returns:
true if the file passes (should be shown), false if it is blocked.

getDescription

public java.lang.String getDescription()
Return a simple String description of files that pass this filter "BioQuery files"
Overrides:
getDescription in class javax.swing.filechooser.FileFilter
Returns:
A String description of acceptable files