org.rosuda.JGR.toolkit
Class ExtensionFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by org.rosuda.JGR.toolkit.ExtensionFileFilter

public class ExtensionFileFilter
extends javax.swing.filechooser.FileFilter


Constructor Summary
ExtensionFileFilter(java.lang.String description, java.lang.String extension)
           
ExtensionFileFilter(java.lang.String description, java.lang.String[] extensions)
           
 
Method Summary
 boolean accept(java.io.File file)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFileFilter

public ExtensionFileFilter(java.lang.String description,
                           java.lang.String extension)

ExtensionFileFilter

public ExtensionFileFilter(java.lang.String description,
                           java.lang.String[] extensions)
Method Detail

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class javax.swing.filechooser.FileFilter

accept

public boolean accept(java.io.File file)
Specified by:
accept in class javax.swing.filechooser.FileFilter