net.sf.taverna.t2.lang.ui
Class ExtensionFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by net.sf.taverna.t2.lang.ui.ExtensionFileFilter

public class ExtensionFileFilter
extends javax.swing.filechooser.FileFilter

A FileFilter implementation that can be configured to show only specific file suffixes.

Author:
Tom Oinn, Stian Soiland-Reyes

Constructor Summary
ExtensionFileFilter(java.util.List<java.lang.String> allowedExtensions)
           
ExtensionFileFilter(java.lang.String[] allowedExtensions)
           
 
Method Summary
 boolean accept(java.io.File f)
           
 java.lang.String getDescription()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtensionFileFilter

public ExtensionFileFilter(java.util.List<java.lang.String> allowedExtensions)

ExtensionFileFilter

public ExtensionFileFilter(java.lang.String[] allowedExtensions)
Method Detail

accept

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

getDescription

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