|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.filechooser.FileFilter
net.sourceforge.jsxe.CustomFileFilter
A custom class that implements the FileFilter interface. It simplifies creating a file filter.
Constructor Summary | |
CustomFileFilter(Collection exts,
String desc)
Creates a CustomFileFilter given a Collection containing the file extensions that the file filter accepts. |
Method Summary | |
boolean |
accept(File f)
Whether the given file is accepted by this filter. |
String |
getDescription()
The description of this filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CustomFileFilter(Collection exts, String desc)
exts
- A Collection of String objects containing the file
extensions that this file filter accepts.desc
- The description for this file filter.Method Detail |
public boolean accept(File f)
public String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |