lhmc.files
Class ImageFileFilter

java.lang.Object
  extended by lhmc.files.ImageFileFilter
All Implemented Interfaces:
java.io.FileFilter

public class ImageFileFilter
extends java.lang.Object
implements java.io.FileFilter

ImageFileFilter is an instance of the FileFilter interface Aceept all directories and image formats that our plugins can display.

Version:
0.01 Jul 2007
Author:
Cristina Roura Claver

Constructor Summary
ImageFileFilter()
           
 
Method Summary
 boolean accept(java.io.File file)
          Accept all directories and all bmp, gif, jpeg, jpg, png or wbmp files.
 boolean accept(SmbFile file)
          Accept all directories and all bmp, gif, jpeg, jpg, png or wbmp files.
 boolean accept(java.net.URL url)
          Accept all directories and all bmp, gif, jpeg, jpg, png or wbmp files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageFileFilter

public ImageFileFilter()
Method Detail

accept

public boolean accept(java.net.URL url)
Accept all directories and all bmp, gif, jpeg, jpg, png or wbmp files.

Parameters:
url - The URL to accept.
Returns:
True if its accepted.

accept

public boolean accept(java.io.File file)
Accept all directories and all bmp, gif, jpeg, jpg, png or wbmp files.

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - The file to accept.
Returns:
True if its accepted.

accept

public boolean accept(SmbFile file)
Accept all directories and all bmp, gif, jpeg, jpg, png or wbmp files.

Specified by:
accept in interface java.io.FileFilter
Parameters:
file - The smbfile to accept.
Returns:
True if its accepted.