|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
com.huguesjohnson.fileFilter.ImageFileFilter
public class ImageFileFilter
ImageFileFilter filter to only accept images supported by ImageIO uses ImageReaderWriterSpi.getFileSuffixes() to get a list of supported extensions
Constructor Summary | |
---|---|
ImageFileFilter()
Creates a new instance of ImageFileFilter |
Method Summary | |
---|---|
boolean |
accept(java.io.File file)
Tests if a file has an extension of a known type. |
java.lang.String |
getDescription()
getDescription returns the description of files accepted by the filter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageFileFilter()
Method Detail |
---|
public final boolean accept(java.io.File file)
accept
in class javax.swing.filechooser.FileFilter
file
- The file to check.
public java.lang.String getDescription()
getDescription
in class javax.swing.filechooser.FileFilter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |