net.clackrouter.actions
Class AbstractActionFile.MyFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.clackrouter.actions.AbstractActionFile.MyFileFilter
Enclosing class:
AbstractActionFile

protected class AbstractActionFile.MyFileFilter
extends javax.swing.filechooser.FileFilter

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


Field Summary
protected  java.lang.String desc
          Descrption of the File format
protected  java.lang.String ext
          Extension for this file format.
protected  java.lang.String fullExt
          Full extension for this file format (the Point and the extension)
 
Constructor Summary
AbstractActionFile.MyFileFilter(java.lang.String extension, java.lang.String description)
          Constructor for the Graphpad specific file format
 
Method Summary
 boolean accept(java.io.File file)
          Returns true if the file ends with the full extension or if the file is a directory
 java.lang.String getDescription()
          returns the desc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ext

protected java.lang.String ext
Extension for this file format.


fullExt

protected java.lang.String fullExt
Full extension for this file format (the Point and the extension)


desc

protected java.lang.String desc
Descrption of the File format

Constructor Detail

AbstractActionFile.MyFileFilter

public AbstractActionFile.MyFileFilter(java.lang.String extension,
                                       java.lang.String description)
Constructor for the Graphpad specific file format

Method Detail

accept

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

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

getDescription

public java.lang.String getDescription()
returns the desc

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