de.infinityloop.util.inout
Class CombinedFileFilter
java.lang.Object
javax.swing.filechooser.FileFilter
de.infinityloop.util.inout.CombinedFileFilter
- All Implemented Interfaces:
- java.io.FilenameFilter
public class CombinedFileFilter
- extends javax.swing.filechooser.FileFilter
- implements java.io.FilenameFilter
Special filter that does allow or-ing the results of a list of filename filters passed to it.
Used to allow opening all files defined in the list of filter specified on AWT.
Method Summary |
boolean |
accept(java.io.File f)
|
boolean |
accept(java.io.File dir,
java.lang.String name)
|
java.lang.String |
getDescription()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombinedFileFilter
public CombinedFileFilter(java.util.Vector filterList)
accept
public boolean accept(java.io.File f)
- Specified by:
accept
in class javax.swing.filechooser.FileFilter
accept
public boolean accept(java.io.File dir,
java.lang.String name)
- Specified by:
accept
in interface java.io.FilenameFilter
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in class javax.swing.filechooser.FileFilter