jsynoptic.ui
Class AggregateFileFilter

java.lang.Object
  extended by javax.swing.filechooser.FileFilter
      extended by jsynoptic.ui.AggregateFileFilter

public class AggregateFileFilter
extends javax.swing.filechooser.FileFilter

This class aggregates a list of file filters, and matches the files accepted by the list.

Author:
nicolas brodu

Nested Class Summary
 class AggregateFileFilter.SelectFileFilterDialog
           
 
Field Summary
static MenuResourceBundle resources
           
 
Constructor Summary
AggregateFileFilter(javax.swing.filechooser.FileFilter[] list)
           
 
Method Summary
 boolean accept(java.io.File f)
          Accepts the file iff one of the filter in the list does
 java.lang.String getDescription()
           
 javax.swing.filechooser.FileFilter getFilterForFile(java.io.File f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resources

public static MenuResourceBundle resources
Constructor Detail

AggregateFileFilter

public AggregateFileFilter(javax.swing.filechooser.FileFilter[] list)
Method Detail

accept

public boolean accept(java.io.File f)
Accepts the file iff one of the filter in the list does

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

getDescription

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

getFilterForFile

public javax.swing.filechooser.FileFilter getFilterForFile(java.io.File f)