visad.util
Class ComboFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by visad.util.ComboFileFilter

public class ComboFileFilter
extends javax.swing.filechooser.FileFilter

A file filter that recognizes files from a union of other filters.


Constructor Summary
ComboFileFilter(javax.swing.filechooser.FileFilter[] filters, java.lang.String description)
          construct a new filter from a list of other filters
 
Method Summary
 boolean accept(java.io.File f)
          accept files with the proper filename prefix
 java.lang.String getDescription()
          return the filter's description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComboFileFilter

public ComboFileFilter(javax.swing.filechooser.FileFilter[] filters,
                       java.lang.String description)
construct a new filter from a list of other filters

Method Detail

accept

public boolean accept(java.io.File f)
accept files with the proper filename prefix

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

getDescription

public java.lang.String getDescription()
return the filter's description

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