MDACC
Biostatistics

org.mdanderson.biostat.geneclust
Class GCFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended byorg.mdanderson.biostat.geneclust.GCFileFilter
All Implemented Interfaces:
GCFileFilterKeys

public abstract class GCFileFilter
extends FileFilter
implements GCFileFilterKeys

GCFileFilter - Abstract application-specific file filter


Field Summary
 
Fields inherited from interface org.mdanderson.biostat.geneclust.GCFileFilterKeys
ASCII_FILE_FILTER_DESCRIPTION, CLASSIFICATION_FILE_FILTER_DESCRIPTION, CONFIG_FILE_FILTER_DESCRIPTION, CSV_FILE_FILTER_DESCRIPTION, FORMATTED_ASCII_FILE_FILTER_DESCRIPTION, MATLAB_FILE_FILTER_DESCRIPTION, MICROSOFT_EXCEL_FILE_FILTER_DESCRIPTION, SAS_FILE_FILTER_DESCRIPTION, TSV_FILE_FILTER_DESCRIPTION
 
Constructor Summary
GCFileFilter()
           
 
Method Summary
 boolean accept(File file)
          Tests whether or not the specified abstract pathname should be included in a pathname list.
 String getDescription()
          Returns the file filter's description
abstract  boolean isMatchingExtension(String extension)
          Tests whether or not the abstract pathname's file extension matches this filter's expected extension(s).
protected  void setDescription(String description)
          Sets the file filter's description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCFileFilter

public GCFileFilter()
Method Detail

isMatchingExtension

public abstract boolean isMatchingExtension(String extension)
Tests whether or not the abstract pathname's file extension matches this filter's expected extension(s).

Parameters:
extension - file extension to be tested
Returns:
true if extension matches; otherwise, false

accept

public boolean accept(File file)
Tests whether or not the specified abstract pathname should be included in a pathname list.

Parameters:
file - abstract pathname to be tested
Returns:
true if pathname should be included; otherwise, false

getDescription

public String getDescription()
Returns the file filter's description

Returns:
string specifying description of file filter

setDescription

protected void setDescription(String description)
Sets the file filter's description

Parameters:
description - string specifying description of file filter

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.