|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
com.lowagie.toolbox.arguments.filters.ImageFilter
public class ImageFilter
Filters images in a FileChooser.
Field Summary | |
---|---|
boolean[] |
filter
array that enables you to filter on image types. |
static String[] |
IMAGES
Array with all kinds of image extensions. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
boolean |
accept(File f)
|
String |
getDescription()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] IMAGES
public boolean[] filter
Constructor Detail |
---|
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 allowedMethod Detail |
---|
public boolean accept(File f)
accept
in class FileFilter
f
- File
FileFilter.accept(java.io.File)
public String getDescription()
getDescription
in class FileFilter
FileFilter.getDescription()
|
Hosted by Hostbasket | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |