public class ImageFilter extends FileFilter
Modifier and Type | Field and Description |
---|---|
boolean[] |
filter
array that enables you to filter on image types.
|
static String[] |
IMAGES
Array with all kinds of image extensions.
|
Constructor and Description |
---|
ImageFilter()
Constructs an ImageFilter allowing all images.
|
ImageFilter(boolean jpeg,
boolean png,
boolean gif,
boolean bmp,
boolean wmf,
boolean tiff)
Constructs an ImageFilter allowing some images.
|
public static final String[] IMAGES
public boolean[] filter
public ImageFilter()
public ImageFilter(boolean jpeg, boolean png, boolean gif, boolean bmp, boolean wmf, boolean tiff)
jpeg
- indicates if jpegs are allowedpng
- indicates if pngs are allowedgif
- indicates if gifs are allowedbmp
- indicates if bmps are allowedwmf
- indicates if wmfs are allowedtiff
- indicates if tiffs are allowedpublic boolean accept(File f)
accept
in class FileFilter
f
- FileFileFilter.accept(java.io.File)
public String getDescription()
getDescription
in class FileFilter
FileFilter.getDescription()
Copyright © 2015. All rights reserved.