cz.cmc.tcgui.actions
Class AbstractFileAction.TCFileFilter

java.lang.Object
  extended byjavax.swing.filechooser.FileFilter
      extended bycz.cmc.tcgui.actions.AbstractFileAction.TCFileFilter
Enclosing class:
AbstractFileAction

protected class AbstractFileAction.TCFileFilter
extends FileFilter

Filter for the jgraphpad file format (*.pad or *.lib)


Field Summary
protected  String description
          Description of the file format.
protected  String extension
          Extension of the file format.
 
Constructor Summary
AbstractFileAction.TCFileFilter(String extension, String description)
          Constructor for the Graphpad specific file format
 
Method Summary
 boolean accept(File file)
          Returns true if the file ends with the extension or if the file is a directory.
 String getDescription()
          Returns the description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

extension

protected String extension
Extension of the file format.


description

protected String description
Description of the file format.

Constructor Detail

AbstractFileAction.TCFileFilter

public AbstractFileAction.TCFileFilter(String extension,
                                       String description)
Constructor for the Graphpad specific file format

Method Detail

accept

public boolean accept(File file)
Returns true if the file ends with the extension or if the file is a directory.


getDescription

public String getDescription()
Returns the description.