nl.lxtreme.ols.util.swing
Class FilenameFilterAdapter

java.lang.Object
  extended by nl.lxtreme.ols.util.swing.FilenameFilterAdapter
All Implemented Interfaces:
FilenameFilter

public class FilenameFilterAdapter
extends Object
implements FilenameFilter

Provides a filename filter adapter that accepts a list of FileFilters to make it easy to use one API for both Swing and AWT.


Constructor Summary
FilenameFilterAdapter(FileFilter... aFileFilters)
           
 
Method Summary
 boolean accept(File aDir, String aName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilenameFilterAdapter

public FilenameFilterAdapter(FileFilter... aFileFilters)
Parameters:
aFileFilters - the Swing file filters to wrap.
Method Detail

accept

public boolean accept(File aDir,
                      String aName)
Specified by:
accept in interface FilenameFilter
See Also:
FilenameFilter.accept(java.io.File, java.lang.String)


Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.